Duplicate DataMember Declarations


If I have two tables in my database that have the same definition and only differ by schema name the entity generator creates 2 of every datamember thus resulting in "member with the same name is already declared."
Closed Sep 18, 2013 at 6:00 PM by TBone512


TBone512 wrote Sep 18, 2013 at 12:54 PM

I could prefix the class name with the schema. I'm not sure if this would be desirable in most cases. It could, however, be optional. Is there a preferred way you would like to see this handled?

TBone512 wrote Sep 18, 2013 at 1:05 PM

I'll also add, my preferred way around this is to generate two different schema.cs files. One for each schema, and separate them via namespace. Coding around this is still a little awkward, but two anything with the same name is a little awkward. Let me know what you think. I'm happy to support any better ideas around this.

TBone512 wrote Sep 18, 2013 at 5:59 PM

The entity generator has been updated to correct this behavior.