I have a type implementing IuserType in my app.I also have a
convention defined.
for this particular type i have a column in my DB which is of type
xml.Now how do i specify the mapping using Fluent?

eg:

 public class MeasuresMapping:ClassMap<Measure>
    {
        public MeasuresMapping()
        {
            Table("PQRSMeasures");
            Id(x => x.Id, "PQRSMeasureKey").Not.Nullable();
            Map(x => x.Criteria,
"Criteria").CustomSqlType("xml").Not.Nullable();// This gives a error.
as Criteria is userdefined type..How i add the mapping here...??????


        }
    }

class NhibernateXmlParser:IUserType
    {

//implemented all the methods

//here the type returned is of same type as of the Criteria


}

    class MeasureConvention : UserTypeConvention<NhibernateXmlParser>
    {

    }

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to