I'm just wondering about an auto-generated data layer vs. a manually-coded data layer. Which on开发者_开发知识库e is better?
That is such an open ended question - neither is better, it all depends on your project.
If i'm only coding against a single database then i like to hand code my data layer, it really doesn't take long and i'm in full control of what i get. If i'm coding against more than one database then i would consider using a code generator to generate the basic classes and then extend them if i need to, code generators tend to spit out partial classes which is how you extend them.
精彩评论