Solved

Best way to connect to SQL in WPF

Posted on 2013-05-29
5
739 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
Comment Utility
0
 
LVL 62

Accepted Solution

by:
Fernando Soto earned 500 total points
Comment Utility
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
Comment Utility
0
 
LVL 1

Author Comment

by:Almatrodi
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SQL Script to find duplicates 16 17
SQL Server memory Issue 7 73
Round up to 100% in .NET 10 39
When to use an Aggregate Function. 18 24
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

762 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

13 Experts available now in Live!

Get 1:1 Help Now