This question is locked. New answers and comments are not allowed.
Hi,
I have mapped the database using Fluent Mapping and edited one of the generated classes. The changes I made is removing the one property and make the class inherit from other class. NOTE: base class is not in the same dll. When I run I get this error.
An unhandled exception of type 'Telerik.OpenAccess.Exceptions.MetadataException' occurred in Telerik.OpenAccess.Runtime.dll
Additional information: Mapping for field '_id' is specified in the file 'config', but the field is not present in the class 'WpfApplication2.Student'. --> EntitiesModel1/namespace[WpfApplication2]/class[Student]/field[_id]
The things I changed in the generated code.
1) Removed the Id property
2) Made the class inherit from other class which is in a different dll
3) Also tried removing KeyGenerator.Guid in Prepare[Entity]PropertyConfigurations.
Thanks,
I have mapped the database using Fluent Mapping and edited one of the generated classes. The changes I made is removing the one property and make the class inherit from other class. NOTE: base class is not in the same dll. When I run I get this error.
An unhandled exception of type 'Telerik.OpenAccess.Exceptions.MetadataException' occurred in Telerik.OpenAccess.Runtime.dll
Additional information: Mapping for field '_id' is specified in the file 'config', but the field is not present in the class 'WpfApplication2.Student'. --> EntitiesModel1/namespace[WpfApplication2]/class[Student]/field[_id]
The things I changed in the generated code.
1) Removed the Id property
2) Made the class inherit from other class which is in a different dll
3) Also tried removing KeyGenerator.Guid in Prepare[Entity]PropertyConfigurations.
Thanks,