I have a SQL Server 2008 database with tables> 300. The application I need to develop is a Windows Forms, .NET 3.5, C # application.
What is the best way to work with Linq-to-SQL?
I intend to make a datacontext for each business object.
Is there a problem?
I need to know if this way of working with Linq-to-SQL has any flaw or may cause performance issues?
Thank.
DBML (= ). DataContext -, LINQ to SQL, ( ), LINQ .
DataContext
(+300 ), . , LINQ to SQL. . ( DBML ), , , . , L2S .
, +150 5 DBML, DBML. , DataContext , .
-, datacontext .
, , , . , : , .
Now I use 1 for the entire database, but there are legal ways to use more. For example, I run a script when I install my site, which connects to a remote database, and imports and converts the data into a new format for deployment. The process uses several temporary tables.
Having placed the temporary tables in a separate context, after deploying the site, I can simply delete these contexts and code, since they are independent objects.
Source: https://habr.com/ru/post/1747669/More articles:How to deploy a Java Swing application with an embedded JavaDB database? - javaSort and limit the set of queries by the number of comments and date using queryset.extra () (django) - pythonJavaScript file validation validation - javascriptDatabase structure for version control and multiple languages - databaseGoogle Map API V3 geocoder not showing the right place - javascriptHow to get or kill all instances from a particular class? - c #How to determine if shortening is applied in my style through JS? - javascriptproblem trying to create ssms add-in .netDecision Tables Presentation Algorithm - algorithmtoo much recursion - javascriptAll Articles