开发者

Some example how use stored procedure (add, edi, del) in MVC .NET application +LINQ

I look for some example how use the stored procedures in M开发者_开发知识库VC with LINQ.


The easiest way to learn this would be to create a L2S dbml file. Drag a table onto it and take a look at the code that it generates.

It's pretty simple to work out from there. You can then call the dmbl class and use thing like myConn.myObj.InsertOnSubmit(new myObj()) etc.

If you want to call a stored proc simply use ExecuteCommand to call the stored proc. You can then fill your model directly off the result set.

I think, at this point though, that you need to just Google it a bit and then when you have more specific questions, come back to SO and ask those questions.

If you type "sql2linq stored proc" as the search string on this site you will also get a number of hits for this topic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜