LINQ to SQL for an existing database

I have a current project that uses LINQ to SQL to create a database and then work with data.

I also have another database that already exists, and I do not need to create it. Do you know any tool that can generate a data model for my existing database?

Note: my database is pretty flat so I don’t have to worry about complex relationships

Thanks in advance;

+4
source share
1 answer

using visual studio, can you just create a new .dbml file and point it to your database and then generate all the Mappers objects?

LINQ to SQL code generation:

http://msdn.microsoft.com/en-us/library/bb399400.aspx

+3
source

Source: https://habr.com/ru/post/1392450/


All Articles