Fluent NHibernate 表主键为guid无法写入
Fluent NHibernate 表主键为guid无法写入public class PrimaryKeyGeneratorConvention : IIdConvention
{
public bool Accept(IIdentityInstance id)
{
return true;
}
public void Apply(IIdentityInstance id)
{
id.GeneratedBy.GuidComb();
}
}
如何解决?
--------------------编程问答-------------------- --------------------编程问答-------------------- 这样设置:<generator class="uuid.hex" /> --------------------编程问答--------------------
刚刚弄好 --------------------编程问答--------------------
补充:.NET技术 , ASP.NET