Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Comments
Matej Hlatky at 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
bikramjeet.sm at 12-Feb-13 9:04am
   
can you please explain about it?

1 solution

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

Solution 1

Hi,
 
are you trying to use sql server 2012 with vs 2010?
Then it could be a ms problem, please read this:
 
http://social.msdn.microsoft.com/Forums/pl/linqtosql/thread/78537f25-6c45-4b56-b476-992e7fe8b4bf[^]
 
In normal case it should be easy Wink | ;)
 
http://www.mssqltips.com/sqlservertip/1542/using-stored-procedures-with-linq-to-sql/[^]
 
SqlMetal on msdn:
http://msdn.microsoft.com/en-us/library/bb386987.aspx[^]
 
Regards
  Permalink  
v3
Comments
bikramjeet.sm at 13-Feb-13 12:23pm
   
No Im working with SQL Server 2008 with VS 2010
Björn Ranft at 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)



Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 13 Feb 2013
Copyright © CodeProject, 1999-2014
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