开发者

Is it possible to configure default settings on Castle Activerecord attributes?

开发者 https://www.devze.com 2022-12-15 14:37 出处:网络
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

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

精彩评论

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

关注公众号