NHibernate 3 specify sql data type with loquacious syntax

后端 未结 2 1814
眼角桃花
眼角桃花 2021-01-21 08:55

I\'m trying to map an Entity with a string property to a varchar column in NHibernate 3 using the new Loquacious API but I can\'t figure out how to specify the Type to

2条回答
  •  攒了一身酷
    2021-01-21 09:31

    ca.Property(x => x.Code, map =>
    {
        map.Type(NHibernateUtil.AnsiString);
        map.Column(/*etc.*/); 
    });
    

提交回复
热议问题