开发者

Custom Identity Types in Mapping

开发者 https://www.devze.com 2022-12-22 05:24 出处:网络
I have an application where the identity column is stored as an Oracle VARCHAR2(50 BYTE) but is actually a Guid.I want my model to expose it as a Guid:

I have an application where the identity column is stored as an Oracle VARCHAR2(50 BYTE) but is actually a Guid. I want my model to expose it as a Guid:

clas开发者_开发技巧s Foo
{
     public Guid Id { get; set; }
}

Using Fluent NHibernate I don't see a CustomTypeIs() method on the IIdentityPart. I would think it would be something similar to an IUserType, but I can't find the correlation. Any thoughts?


Fabio Maulo noted that this is governed by the DataProvider on the NHibernate Users mailing list.

0

精彩评论

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