2

I have 2 projects which use the same database. If I change database structure for first project, how can I update linq2sql model in my second project?

every time delete and recreate all objects? can I syncronize my model with database?

user970742
  • 419
  • 1
  • 5
  • 10

1 Answers1

2

There is no out-of-the box synchronization for Linq-2-sql. There are some third party products that will do this for you. Look here How do I update a Linq to SQL dbml file?

However, have you considered moving the data layer to a separate class library and reference that in both projects? That way you are always consistent.

Community
  • 1
  • 1
Pleun
  • 8,856
  • 2
  • 30
  • 50