开发者

Fluent NHibernate Generated.Insert does not work as expected

I want to auto generate a number for an开发者_StackOverflow中文版 entity from the database with the following mapping:

Map(m => m.No).Not.Nullable().ReadOnly().Unique().Generated.Insert();

Why is no value generated for the property "No" of type int?

This is not an identity column.


You have it marked ReadOnly()? So it's not going to insert or update the value.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜