Using the Linq-To-SQL class automatically creates a connection string for me; is there any way to manually install it?

I'm just starting to use Linq-to-SQL, and it is just great to use. The problem is that this software will run on many machines, and each machine will have a unique connection string.

Is there a way to manually establish a Linq-to-SQL connection (.dbml)?

The way I am doing now is creating a .dbml file, and in the graphic designer, I drag and drop tables from Server Explorer onto the whiteboard .dbml.

+3
source share
1 answer

. , DataContext:

MyDbContext _context = MyDbContext(connString);
+6

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


All Articles