Linq to Sql Data class in dbml

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2009-07-24T04:06:39Z Indexed on 2010/06/13 10:02 UTC
Read the original article Hit count: 353

Filed under:
|
|

I am abit curious about dbml.... Should I create one dbml file for one database or separated into different parts e.g. User dbml (only tables relate to users) etc? When I do this I will have abit of problems. Assume the User dbml has a User table and if the Order dbml has a User table as well, this won't be allowed if the entity namespace are the same. If I have set a different entity namespace for each of the dbml, it works but this will gives me a different entity of User table. When a single data returns to Business Logic layer, there is a difficulty of knowing which entity namespace of the user table to be used.

If I built one dbml file instead of having separate dbml, will single dbml appear slower than the separated dbml version when fetching the data from the database.

© Stack Overflow or respective owner

Related posts about database

Related posts about linq-to-sql