开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜