.net使用存储过程的代码 [英] code for asp .net to use store procedure
本文介绍了.net使用存储过程的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我的商店流程如下
Hi all,
My Store procedure is below
create procedure[dbo].[insertresumedocument]
(
@resume_id int,
@document_name varchar(50),
@document_ext varchar(3),
@document_type varchar(50),
@document_location varchar(100))
as
declare @documentid int;
insert into document
(Resume_id ,
document_name,
document_ext,
document_type ,
document_location )
values(@resume_id ,
@document_name ,
@document_ext ,
@document_type ,
@document_location)
select @documentid=(select max(document_id) from document);
return @documentid;
要使用ling插入到两个表中,需要在asp .net中编写哪些代码.
我的liql名称是"mycontextdata".
如果有人知道解决方案,请回答.
在此先感谢
What code needs to be written in asp .net to insert into the two tables using ling.
my liql name is "mycontextdata".
Please answer if anyone knows the solution.
Thanks in Advance
推荐答案
检查链接 ^ ]
这篇关于.net使用存储过程的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文