Solved

Best way to connect to SQL in WPF

Posted on 2013-05-29
5
768 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
5 Comments
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39206234
0
 
LVL 62

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 62

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how the fundamental information of how to create a table.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now