1
23
使用
|
2
16
如果你想的话 全部的 对于要映射到varchar而不是nvarchar的字符串,可以考虑使用约定:
然后映射可以返回到一个简单的映射:
确保你记得告诉Fluent NH使用惯例:
|
3
8
多哈。
|
4
0
我们发现使用“customtype”(“ansistring”)选项确实会阻止它使用nvarchar,但是它为指定为varchar(30)的列设置了8000的字段长度。8000 varchar比4000 nvarchar快得多,但它仍然导致了SQL Server开销方面的巨大问题。 |
Stu · 具有特定类型的字符串外键的NHibernate映射 6 年前 |
Nick · Fluent NHibernate映射没有主键的联接表 7 年前 |
ViqMontana · 如何使用结构图模拟基类? 7 年前 |
Th3B0Y · 无法使用父Id保存子项 8 年前 |