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)
.Column("Test")
.CustomType("NhibernateExt.UriType")
.Access.Property()
.Generated.Never()
.CustomSqlType("varchar")
.Length(100);
public virtual System.Uri Test
{
get;
set;
}