How do I search for a record by primary key, but return null if it doesn\'t exist? public static T FindByPrimaryKeyOrDefault(object id)
I would like to do the following, all in a single atomic transaction: Read an object through ActiveRecord
Is there a built-in way to do an \"insert-or-update\"开发者_Go百科 in Castle ActiveRecord? Something along the lines of:
I was looking web for something like DataRow.RowState property in ActiveRecord class, but no luck. I simply want to know whether obj开发者_Go百科ect has changed or not.
In a hierarchical data model i have Parent and Child.Parent has Fields[] and each child will al开发者_Go百科so have the same \"Count\" of fields.. we\'ll call them ChildField[]
In Castle Activerecord (on top of NHibernate), is it possible to use class table inheritance globally, and single table inheritance on part of the inheritance tree? I would like to do something 开发者
Is it possible to configure t开发者_StackOverflow中文版he default settings on Castle Activerecord attributes? For example, I\'d like all strings to have length 4001 (which makes it a nvarchar(MAX) on
In debug, everything builds normally. When I try to compile in release mode, I get: \"The type or namespace name \'Castle\'
I am trying to get xsp2 to run my asp.net mvc application, but I get the attached error message with no debug information.Nothing useful is produced if I run xsp2 with --verbose.
I\'m running some unit tests using Castle ActiveRecord that interact with a database.I have a procedure to drop the database (if it exists), then re-create it, before I interact with i开发者_运维技巧t