Monday, 15 September 2014

c# - how to map object data type -



c# - how to map object data type -

my domain object have entity of object info type

public virtual object provideruserkey {get; set;}

i'm using mapping code approach tried map other info type this

property(x => x.provideruserkey);

but i'm getting error

{"property mapping has wrong number of columns: model.account.provideruserkey type: object"}

so how solve this?

thanks

do not utilize object datatypes in entity classes. nhibernate does'nt know how map object valid db type.

instead of casting provideruserkey guid or whatever alter , utilize explicit datatype guid provideruserkey.

c# nhibernate

No comments:

Post a Comment