/// <summary> /// 用于向 Admin_SysMenu EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToAdmin_SysMenu(Admin_SysMenu admin_SysMenu) { base.AddObject("Admin_SysMenu", admin_SysMenu); }
/// <summary> /// 创建新的 Admin_SysMenu 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="parentID">ParentID 属性的初始值。</param> /// <param name="menuName">MenuName 属性的初始值。</param> /// <param name="menuUrl">MenuUrl 属性的初始值。</param> /// <param name="orderIndex">OrderIndex 属性的初始值。</param> /// <param name="adminRoleID">AdminRoleID 属性的初始值。</param> /// <param name="isEnable">IsEnable 属性的初始值。</param> /// <param name="isDelete">IsDelete 属性的初始值。</param> /// <param name="addTime">AddTime 属性的初始值。</param> public static Admin_SysMenu CreateAdmin_SysMenu(global::System.Int32 id, global::System.Int32 parentID, global::System.String menuName, global::System.String menuUrl, global::System.Int32 orderIndex, global::System.Int32 adminRoleID, global::System.Boolean isEnable, global::System.Boolean isDelete, global::System.DateTime addTime) { Admin_SysMenu admin_SysMenu = new Admin_SysMenu(); admin_SysMenu.ID = id; admin_SysMenu.ParentID = parentID; admin_SysMenu.MenuName = menuName; admin_SysMenu.MenuUrl = menuUrl; admin_SysMenu.OrderIndex = orderIndex; admin_SysMenu.AdminRoleID = adminRoleID; admin_SysMenu.IsEnable = isEnable; admin_SysMenu.IsDelete = isDelete; admin_SysMenu.AddTime = addTime; return admin_SysMenu; }