seperate DTO's
-
hi guys through linq to sql it generates all the table classed in the same class (file) and also the related method CRUd in the same file as well , is there any way that we can generate seperate class for each data table and all the table classed in a seperate library and the data base operations in another library , thansk.
Tauseef A Khan MCP Dotnet framework 2.0.
-
hi guys through linq to sql it generates all the table classed in the same class (file) and also the related method CRUd in the same file as well , is there any way that we can generate seperate class for each data table and all the table classed in a seperate library and the data base operations in another library , thansk.
Tauseef A Khan MCP Dotnet framework 2.0.
The way I used to do it w/ LINQ2SQL is to generate an interface on the table, for each table class in the datacontext. I would then manually go through each interface and convert it to a class. I'm not sure if someone has figured out how to automate this. After a year of so, I bought a commercial ORM from Mindscape called Lightspeed, it supports linq and generates the DTOs for me =)