Convert stored procedure to linq query

时间:2019-04-08 13:20:24

标签: database

I have stored procedure as below:

ELSE IF @ActionType = 'insert' BEGIN
insert into scheduler(scheduletype,schedulename,description,starttime,nexttime,stoptime,isstop, scheduletime, workingweekdays, interval, fromtime, totime,months, recurringday, dates, weeksequence, month_days, month_isdays, month_isweeks,active, enabled, freefield1, freefield2, freefield3, freefield4, created_by, created_on) values(@scheduletype,@schedulename,@description,@starttime,@nexttime,@stoptime,@isstop, @scheduletime,@workingweekdays,@interval,@fromtime,@totime,@months, @recurringday,@dates,@weeksequence,@month_days,@month_isdays,@month_isweeks,@active,@enabled, @freefield1,@freefield2,@freefield3,@freefield4,@OperationBy,getdate())

    select @@identity

END

I want this to be converted to LINQ query

0 个答案:

没有答案