How to Map Enum in NHibernate to Properly Create DB Field on Schema Export?

I have not tested it, but you can use the Column declaration within a property to specify the sql type. Example from the docs.

I have not tested it, but you can use the Column declaration within a property to specify the sql type. Example from the docs: Granted this is a string, but you may want to try it with the type of OperatorCodeType, column sql-type as text or nvarchar or whatever works. If you try it, let me know?

Not near my dev machine at the moment.

Chad, This worked like a charm. I've never split a property element out with a column node, but I thought there had to be some way to do it in the . Hbm files, since I saw that Fluent Nbernate lets you do it through code.

The column declaration gives more fine-grained control. Thanks a lot! – Mark Struzinski Jun 3 '09 at 11:56 Not a problem, glad I could help.

– Chad Ruppert Jun 3 '09 at 12:30.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions