View Single Post
  #16 (permalink)  
Old March 22nd, 2008, 08:04 PM
dparsons dparsons is offline
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

Since the DBML file is simply an abstraction of the database itself you could theoretically have multiple DBML files for each section. Since any LINQ command you issue is ultimately converted into SQL and then executed against the datastore itself, this shouldn't be a problem.

The only thing you might have an issue with is in the case where, hypothetically, a poll post would have a relation to something in the Artiles table and you wanted to navigate that Relationship via LINQ.

However, since the DBML files are partial classes by nature, if all of your classes shared the same class name, this shouldn't be to much of a problem but I would like to stress that this theory only and I have not actually tried it so am unsure of an exact answer.

Does that make sense?

================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========