C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WPF »

How to use LINQ with Stored Procedure in WPF?


Posted Date: 22 Oct 2009      Posted By: Kumar, K, M      Member Level: Silver     Points: 1   Responses: 2



Hi,

I'm using LINQ to call Stored procedure in WPF application but i'm getting the following error when i run it.

Error:
"Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."

Please anyone helpme out.

Thanks,
kumar





Responses

Author: Anuraj    22 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Check this link

http://social.msdn.microsoft.com/Forums/en-US/sqlnetfx/thread/1505d7e6-59dc-4997-b707-9e9736a1f978/

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Author: ABitSmart    23 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Can you explain what steps you have done?

- Create the stored proc
- Drog/drop into the DBML file

These are the only two steps needed. The stored procedure will then be available as a method on the DataContext object

Kind regards,
ABitSmart
DNS Web-master, DNS MVM
My blog
Thoughts.exe



Post Reply
You must Sign In to post a response.
Next : How to delete the row by clicking Checkbox in DataGrid in WPF
Previous : Bind Checkbox
Return to Discussion Forum
Post New Message
Category: WPF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use