Solved

Best way to connect to SQL in WPF

Posted on 2013-05-29
5
840 Views
Last Modified: 2013-05-31
Hi all

right now I am working in analyzing a multiuser project. I will use WPF with C#, and the Database will be SQL 2012. In previous project I used sql statement to connect to database. While reading I found many suggestion to use LINQ TO SQL.

Could anyone help me in this matter.
0
Comment
Question by:Almatrodi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 39206234
0
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39206500
Hi Almatrodi;

I think you will find that Linq to Entity Framework will be a better technology to use over Linq to SQL. Please see this web site for some tutorials, Get Started with Entity Framework (EF).
0
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
ID: 39207715
0
 
LVL 1

Author Comment

by:Almatrodi
ID: 39208174
Thanks all, but I don't need examples. I am asking about the best way.

Dear FernandoSoto

Is the EF good for multiusers environment?
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 39208300
Hi Almatrodi;

Entity Framework as well as Linq to SQL are built on top of ADO.Net and both have methods to handle conflicts. So yes Entity Framework can be used in a multiuser environment.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question