如何将字符串字段长度映射到 sql 中的 nvarchar(max)
服务器?
Property<string>(x => x.Content, x => x.Length(Int32.MaxValue));
它导致仅映射到 nvarchar(255)。
最佳答案
Property(x => x.Content, x => x.Type(NHibernateUtil.StringClob))
关于nhibernate - 适当映射字符串字段长度(按代码映射),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6643597/