/// <summary> /// 用于向 Admin_Role EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToAdmin_Role(Admin_Role admin_Role) { base.AddObject("Admin_Role", admin_Role); }
/// <summary> /// 创建新的 Admin_Role 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="roleName">RoleName 属性的初始值。</param> /// <param name="input">Input 属性的初始值。</param> /// <param name="see">See 属性的初始值。</param> /// <param name="import">Import 属性的初始值。</param> /// <param name="export">Export 属性的初始值。</param> /// <param name="isDelete">IsDelete 属性的初始值。</param> /// <param name="addTime">AddTime 属性的初始值。</param> public static Admin_Role CreateAdmin_Role(global::System.Int32 id, global::System.String roleName, global::System.Boolean input, global::System.Boolean see, global::System.Boolean import, global::System.Boolean export, global::System.Boolean isDelete, global::System.DateTime addTime) { Admin_Role admin_Role = new Admin_Role(); admin_Role.ID = id; admin_Role.RoleName = roleName; admin_Role.Input = input; admin_Role.See = see; admin_Role.Import = import; admin_Role.Export = export; admin_Role.IsDelete = isDelete; admin_Role.AddTime = addTime; return admin_Role; }