Is it possible to configure default settings on Castle Activerecord attributes?
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 SQL Server) without having to put Length=4001 on every [Property] attribute. I'd also like all collections to be lazy-loaded without having to put Lazy=true on every [HasMany] attribute.
Take a look at this question. You can use the same mechanism to programmatically inspect and change the ActiveRecord model before it's passed to NHibernate.
加载中,请稍侯......
精彩评论