存储过程示例如下:
Create PROCEDURE [dbo].[CreateUpdateDelete_NewsArticleEntity]
@DataAction int,
@articleid int = 0,
@sortid int,
@title varchar(100),
@source varchar(50),
@author varchar(50),
@topnews bit,
@description text,
@hitrate int,
@adddate datetime,
@lastupdate datetime,
@editor varchar(50),
@userid int,
@visible bit,
@openread bit,
@keyword varchar(100),
@img varchar(50)
生成代码如下:
SqlParameter[] _param={
SqlHelper.MakeInParam("@DataAction",""),
SqlHelper.MakeInParam("@articleid",""),
SqlHelper.MakeInParam("@sortid",""),
SqlHelper.MakeInParam("@title",""),
SqlHelper.MakeInParam("@source",""),
SqlHelper.MakeInParam("@author",""),
SqlHelper.MakeInParam("@topnews",""),
SqlHelper.MakeInParam("@description",""),
SqlHelper.MakeInParam("@hitrate",""),
SqlHelper.MakeInParam("@adddate",""),
SqlHelper.MakeInParam("@lastupdate",""),
SqlHelper.MakeInParam("@editor",""),
SqlHelper.MakeInParam("@userid",""),
SqlHelper.MakeInParam("@visible",""),
SqlHelper.MakeInParam("@openread",""),
SqlHelper.MakeInParam("@keyword",""),
SqlHelper.MakeInParam("@img",""),
};
模板下载/Files/shoucao/shoucao.rar