Confusion between DTOs (linq2sql) and Class objects!

后端 未结 4 443
遥遥无期
遥遥无期 2021-01-03 00:45

i have been successfully working with linq2sql and the linq DTOs (the classes that are created by linq2sql) ....

I am confused, i have the task of updating an old ap

4条回答
  •  一向
    一向 (楼主)
    2021-01-03 01:07

    The classes generated by the linq2sql designer are partial classes, so you can extend these and put your business logic directly into them. The idea is that linq is used to persist/reconstruct these entities so you can avoid the kind of mapping you're talking about.

提交回复
热议问题