First, I am Linq to Sql newbie, so please be gentle :).
I have existing ASP.Net application developed over last 3.5 years. It has pretty big data model underneath, around 350 tables. I am trying to do some new things with Linq to SQL.
First impression is that linq designer and SqlMetal are built for databases not bigger than NorthWind example. Here are some problems I have:
- I have table
Products
that is needed in lots of places (inventory, invoicing, production, ...). If I put tableProducts
in each dbml file, linq designer is going to createProduct
class in each of them. I don't want that. I want to only oneProduct
class. - I have DataContext about shipping. It needs around 40 tables. This makes dbml file very hard to manage. Is there a way to create smaller dbml files and then include them (as reference) into some "major" dbml?
For now, I really like Linq, but I think it is still seriously lacking design tool for anything bigger than 10 tables.
My solution now is building smaller models with Linq designer and then manually merging them (adding properties and references), so lots of code will be generated, but there will also be lots of manual work.
Did I miss something big or is this current state of affair with Linq to Sql?