/// <summary> /// 添加多条记录 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="dc"></param> /// <param name="tentitys"></param> public static bool InsertToMany(IEnumerable <ManagementStrategyRecord> tentitys) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { LinQBaseDao.InsertToMany(db, tentitys); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }