Class Clash
If this question/observation goes outside the scope of the book, just ignore it, but I find this interesting. I am trying to use the techniques demonstrated in the book to my own project.
I defined a class that mirrored the structure of a table, with some constructors and get/sets - nothing more. The class file existed in the project but not otherwise in use.
Later, I created a linq to Sql class and on the table and brought up the Object Relational Designer when a whole pile of runtime errors occurred referencing my class file - all about duplicate constructors and name clashes.
I am assuming that the linq to sql class setup created some source code very similar to my own? Does that mean having my hand coded class and a linq to sql class are mutually exclusive?
|