NHibernate IUserType (type and definition)

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
Posts: 4
Joined: Sat 29 Mar 2014 17:10

NHibernate IUserType (type and definition)

Post by ruda » Tue 08 Apr 2014 13:56

NHibernate lets you create a IUserType a ready class. For example, create a IUserType to System.Uri.

Then create a class called the project UriType Implementing IUserType and setting the type as System.Uri.

On the property in the class it is the type System.Uri, but the Type of NHibernate is UriType type. Works perfectly, but I have no way to define the two Entity Developer. If I define UriType he puts on the property UriType, but should be the System.Uri.

How do I set the property type and the type of nhibernate?

Code: Select all

Map(x => x.Test)    

public virtual System.Uri Test

Site Admin
Posts: 8241
Joined: Thu 14 Aug 2008 12:44

Re: NHibernate IUserType (type and definition)

Post by Shalex » Mon 14 Apr 2014 12:00

Please set System.Uri explicitly in the Type property of HibernateProperty. Save the model and regenerate the code. Is that what you mean?

Post Reply