开发者

Auto-generated data layer vs. manully-written data layer in asp.net - which one is better?

开发者 https://www.devze.com 2022-12-14 05:37 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消