views:

348

answers:

0

Hi All,

i am trying to set up default values for my columns using map file in fluentNhibernate. It is working for bool and int types but when i am setting the same for string type column , no matter what it sets it always null.

here is how i am setting up the map file

Id(x => x.DisplayID);
Map(x => x.CanDetach).Default("false").Not.Nullable();
Map(x => x.Description).Default(" ").Not.Nullable();

here CanDetach is bool value and it works fine but Description is string which dont work and always getset to null.

Please advice. Thanks

related questions