using ( androidhiveEntities db = new androidhiveEntities() ) { #region 添加 //aa a = new aa() { endDate =DateTime.Now,name="张三",doccode="ddoccode ",startDate=DateTime.Now }; …
Web 三级联动 下拉框 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { private MyDBDataContext _Context = new MyDBD…
1批量添加 db.T_Investigator.AddRange(list) 2批量删除 db.T_Investigator.RemoveRange(list) 3批量修改 for 循环修改. 注意: 先查询出来,最后savechange(),写在一个事务中,一次请求一个上下文. public int SubmitAll(int[] idList, int userId) { int num = 0; using (var pmdb = new ProjectManagement…