This is a migrated thread and some comments may be shown as answers.

Wrong generated class name

1 Answer 75 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Peter Szintai
Top achievements
Rank 1
Peter Szintai asked on 17 Nov 2010, 11:42 PM
Hi All,

ORM version : 2010. Q3 (but the problem exists in the 2010. Q2 also). The backend is MS SQL Server 2008 R2 Express.

When I add a new Telerik OpenAccess Domain Model item to my application, and the database contains tables called <something>Data, e.g.: aaData, then the generated class names are <something>Datum, but the table property is correct.

    [Table("aaData")]
      public partial class AaDatum
      {

We have solved the problem with the rename of these table to <something>Dat, but the problem exists anyway.


Best regards,

Peter

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 19 Nov 2010, 10:29 AM
Hi Peter, 

This is actually the desired effect. The word data is actually the plural form of datum. So if you have chosen singularization for your classes it is normal that your class ends on Datum while your table is still in plural form.

Regards,
Petar
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Tags
Design Time (Visual Designer & Tools)
Asked by
Peter Szintai
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or