Click here to Skip to main content
12,404,017 members (73,283 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# SQL LINQ VS2010
Hello guys,

I am trying to use linq to sql to store data in to database in wpf application when i add a linq-to-sql in my project and try to drag and drop Table in to it it didnt allow to drag table and store procedure to add in linq-to-sql. so i have a question is that linq-to-sql works in WPF. if yes how can i use it.

Thank you
Posted 12-Feb-13 0:43am
Matej Hlatky 12-Feb-13 8:25am
I am using combination what have you described and never had problem with that.
As a workaround you can use sqlmetal to generate dbml file. Good luck 12-Feb-13 9:04am
can you please explain about it?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


are you trying to use sql server 2012 with vs 2010?
Then it could be a ms problem, please read this:[^]

In normal case it should be easy Wink | ;)[^]

SqlMetal on msdn:[^]

Comments 13-Feb-13 12:23pm
No Im working with SQL Server 2008 with VS 2010
Björn Ranft 13-Feb-13 12:29pm
Do you get some exception?Otherwise (as Matej pointed to), try sql metal, but I would be longing to know what's the problem in VS. I've updated solution with link to sqlmetal.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100