Hi,
I want read the column properties as they are saved in the databes table from the respective mapped objects, so I can pass them around the program where I need them.
Example:
I have a table "Content", with a nvarchar column "Comment", which has a limit of 2000 chars and is nullable. So I map this column to my Content class with options .Length(2000) and .Nullable(). I understand this is important for nhibernate so it can properly talk to the connected table.
BUT how can my program properly talk to the nhibernate object and pull this info from the Content object? What's the the most elegant way to do it?
|