begin transactionbegin insert into BlogUsers(BlogName) values ('测试'); insert into Posts(PostTitle,BlogUserId,CreateTime,dd) values ('标题',SCOPE_IDENTITY(),'2016-10-14 00:00:00.000','true');endif @@error>0 begin rollback transaction rais…
EF to sql string sql = "select T_Task.BSID,T_Task.CloseDate,T_Task.CompleteDate,T_Task.CloseUser,T_Task.TaskID,T_BaseStation.Name from T_Task " + "inner join T_BaseStation on T_Task.BSID=T_BaseStation.BSID"+ " where " + sqlta…