Hi,
is there any way to get the SQL type of a column if it is not explicitly stated in the mapping file?
I would like to get some schema information from a Configuration. From Configuration I can get objects of class Table. From there I can get a collection of Column objects.
And now for my problem: I would like to get the SQL Type NHibernate assumes (for example if you generate the DDL script to generate the database). So I try to call GetAutoSqlType or GetSqlType, but both need a IMapping which is not exposed by Configuration. Looking into Configuration (with Reflector for example) shows a private class Mapping which implements IMapping.
Thanks very much!
Sincerely,
Stefan Lieser
|