I have tables like Users (UserId,Username,Password,CreatedOn,CreatedBy) Roles (RoleId,RoleName,Description,CreatedOn,CreatedBy)
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:
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
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:
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
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)
I have a console application that uses NHibernate and ActiveRecord. I am using the following detached criteria:
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
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
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