0

I have question about fluent nhibernate and mysql. I'm doing this:

Fluently.Configure()    
.Database(MySQLConfiguration.Standard.ShowSql())    
.Mappings(m =>        
m.FluentMappings        
.AddFromAssemblyOf<ShopperMapping>())    
.BuildConfiguration();SchemaExport 
exp = new SchemaExport(cfg);
exp.Execute(true, false, false, true);

But when doing this I get failures like "Dialect does not support DbType.Uint32" and the likes. I get the same for mapped properties that are of type Uint64 (ulong). Why does this happen? Does anyone know? Do I need to map in some other way? Like explicitly saying which access strategy to use or something like that?

Regards, Jörgen

1 Answer 1

3

NHibernate does not support unsigned integer types. The full list of basic types implemented by NHibernate can be found in the documentation.

I don't know of any "official word" as to why they are not, but if I had to guess it's that some* major database engines for whatever reason do not support unsigned integers.

**for appropriately small values of "some"*

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.