partial void DeleteUserLevel(UserLevel instance);
partial void InsertUserLevel(UserLevel instance);
partial void UpdateUserLevel(UserLevel instance);
/// <summary> /// Insert a new record to [UserLevel] database.Finally, return the record [Id] /// </summary> /// <param name="item"></param> /// <returns></returns> public int Insert_UserLevel(UserLevelShow item) { s26webDataContext db = new s26webDataContext(); var result = new UserLevel { Name = item.Name, CreateTime = DateTime.UtcNow }; db.UserLevel.InsertOnSubmit(result); db.SubmitChanges(); Insert_CompetenceTable(item, result.Id); return result.Id; }