1

Closed

Generated Entity Class Name Inconsistency

description

I generated few classes base on Northwind db such as Category, Employee, Order, Products... I get error when I try to compile the project and it turns out that the name of Order Class is "Order" but the Orders property inside Order Details class is "Orders". What can I do?

file attachments

Closed Aug 2, 2009 at 10:46 PM by ahmedsalako
resolved. Thanks

comments

ahmedsalako wrote Jul 16, 2009 at 8:23 AM

what is the error details

ahmedsalako wrote Jul 16, 2009 at 8:33 AM

judging by your statements, its an error with the code generator of the designer. I will try and replicate what you have done and i will get back to you asap. For now you will have to manually change the Orders to Order.

ahmedsalako wrote Jul 16, 2009 at 9:22 AM

use the name singularization option of the designer property and regenerate the code. Todo: click on the designer surface go to property window and select "True" for Name singularization. Attached is a picture of what you have to do. thanks

wrote Jul 16, 2009 at 9:22 AM

hienkhieu wrote Jul 16, 2009 at 3:48 PM

Ahmed,

I still the same error even I have used "singularization" setting. Here are some screen shots

wrote Jul 16, 2009 at 3:48 PM

hienkhieu wrote Jul 16, 2009 at 3:49 PM

Another screen shot

wrote Jul 16, 2009 at 3:49 PM

hienkhieu wrote Jul 16, 2009 at 3:51 PM

3rd screen shot

wrote Jul 16, 2009 at 3:51 PM

hienkhieu wrote Jul 16, 2009 at 3:54 PM

By the way, when I switched Singularization between "Yes" and "No", it did not make any difference.

ahmedsalako wrote Jul 16, 2009 at 6:25 PM

hmm, the most recent code is in the source code section of this project page. I have not updated the release. I actually tried the designer with northwind database using the most recently checked in code and it worked. Once i do a new release you will get the latest. But you are free to download the code and just build then get the MSi from the RapidEntitySetup project Debug folder.

Thanks for your feedback

ahmedsalako wrote Jul 16, 2009 at 7:34 PM

Attached is the most recent designer build

wrote Jul 16, 2009 at 7:34 PM

ahmedsalako wrote Jul 16, 2009 at 7:39 PM

i will also advise you clear your designer and drag your entities again after you choose Name Singularization. Thanks for your prompt notifications

hienkhieu wrote Jul 17, 2009 at 3:44 AM

Thanks Ahmed. The attached msi file helps.

wrote Aug 2, 2009 at 10:46 PM

wrote Feb 13, 2013 at 5:33 PM

wrote May 15, 2013 at 1:17 AM