[英]In Fluent NHibernate how do I specify a dictionary mapping type size?
How can I specify the size of the type used in the following Dictionary mapping: 如何指定以下字典映射中使用的类型的大小:
HasMany(x => x.WidgetSettings)
.AsMap<string>(idx => idx.Column("SettingKey"),
elem => elem.Column("SettingValue"))
.Not.LazyLoad()
.Table("WidgetSettings");
The mapping defaults both column types to varchar(255) and I want the SettingValue colume to be nvarchar(MAX) for example. 映射默认将两种列类型都默认设置为varchar(255),例如,我希望SettingValue枚举为nvarchar(MAX)。 How can this be achieved?
如何做到这一点?
Ok, 好,
Seems this is a known bug in the 1.0 release. 似乎这是1.0版本中的已知错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.