This question is locked. New answers and comments are not allowed.
There is a bug with reverse mapping.
In reverse mapping wizard, I renamed class to singular form (eg: from Partneri to Partner) and then I clicked on Gen & Save.
Classes are generated, but it can't be compiled.
Problem is that for every table two files are created, and second file (Dokument.Telerik.OpenAccess.cs) contains declarations with old, plural, names. Something like
This will not compile. Partneri should be Partner.
And Dokument.cs contains this
This will compile, but property is generated in plural form. Since it is FK declaration, It should be singular (Partner) on Document.
And so on for every generated file that I renamed class name.
In reverse mapping wizard, I renamed class to singular form (eg: from Partneri to Partner) and then I clicked on Gen & Save.
Classes are generated, but it can't be compiled.
Problem is that for every table two files are created, and second file (Dokument.Telerik.OpenAccess.cs) contains declarations with old, plural, names. Something like
... |
private Partneri partneri; |
... |
This will not compile. Partneri should be Partner.
And Dokument.cs contains this
[Telerik.OpenAccess.FieldAlias("partneri")] |
public Partner Partneri |
{ |
get { return partneri; } |
set { this.partneri = value; } |
} |
This will compile, but property is generated in plural form. Since it is FK declaration, It should be singular (Partner) on Document.
And so on for every generated file that I renamed class name.