castle-activerecord
Help Configuring Associations in Castle Active Record in case of association table
I have tables like Users (UserId,Username,Password,CreatedOn,CreatedBy) Roles (RoleId,RoleName,Description,CreatedOn,CreatedBy)[详细]
2023-03-06 02:24 分类:问答ASP.NET MVC3 + ActiveRecord + HasMany + Dictionary
I\'m trying to get a Dictiona开发者_开发知识库ry data-structure in place for one of my ASP.NET MVC models. Essentially, I would like a hash-map of settings as key-value pairs. My code is similar to:[详细]
2023-03-01 15:17 分类:问答Castle Active Record - Validation and Relationships
I have two models: foo and bar. Foo has a bar object. Foo and bar have开发者_Go百科 validation rules. If I call Foo.isValid() it doesn\'t validate bar too. I need to validate bar with isValid. How doe[详细]
2023-02-28 18:38 分类:问答Cast as decimal(38,12) in HQL
I\'m using NHibernate with Active Record and I\'m trying to sum up a column and return the result. The column is a decimal(38,12). However when I do this I get the SQL Exception:[详细]
2023-02-28 07:56 分类:问答C# Active Record Implementations
I stumbled across Castle Active Record a few weeks ago and thought that it looked like an interesting solution to the laborious CRUD tasks associated with data driven applications. It seems pretty mat[详细]
2023-02-22 22:59 分类:问答How run Castle Active REcord Example
I can\'t run properly example from castle site under VS2010 +mssql2008 (I try it under ms win xp - mssql2005 +ms c# 2010 express too)[详细]
2023-02-21 10:28 分类:问答Problems with HasMany, Lazy loading and session scopes
I have a console application that uses NHibernate and ActiveRecord. I am using the following detached criteria:[详细]
2023-02-19 21:05 分类:问答Can multiple classes share a single db table in ActiveRecord/NHibernate
C# w/Cast开发者_开发问答le ActiveRecord I\'ve two (or more) classes in C# that I\'d like to interact with the same database table. These two classes do NOT share a base class, so I can\'t use a Discr[详细]
2023-02-18 23:23 分类:问答castle activerecord rewrite sql
is there anyway to intercept the sql query before it is sent to the database and rew开发者_运维技巧rite it using castle active record ?Set up an interceptor and use OnPrepareStatement to modify the ge[详细]
2023-02-17 04:54 分类:问答Current status of DifferentDatabaseScope implementation
my current project requires to connect to two different database (same schema, different database engine) using castle activerecord. The connection string for first database is same all the time, but[详细]
2023-02-16 10:05 分类:问答