Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please compare methods in C# to connect to SQL Server database. For example, 3-tier architecture of traditional and entity Framework (linq to entity or linq to sql object model) and Linq to SQL. In terms of speed, quality and functionality which one is better.
Posted
Updated 11-Oct-14 6:30am
v2

There are more than one methods in C#, and they depend on your own architecture and design on the platform. If the platform is Windows (.NET Framework) and the server for the data is the SQL Server, you should use the SqlClient of the .NET framework to work with data.

How to connect SQL Database to your C# program, beginner's tutorial[^] Read the article and understand what .NET has for you, how you connect to the SQL Server databases.

Speed, Quality and functionality would be better of built-in modules always, however, you can always create your own frameworks and projects to work with databases in your project. But, using the built-in functions will be better and more efficient.
 
Share this answer
 
Then what you will do? We answer specific questions here. Please understand.

The question you are asking is a vast topic and needs proper time and resource to compare. It cannot be quickly answered.

I would highly recommend you to go on and do this yourself. If you face any specific issue while your research is going on, come back and ask a question in Code Project again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900