예제 #1
0
 /// <summary>
 /// 用于向 Sys_MvcControllerRolePermission EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToSys_MvcControllerRolePermission(Sys_MvcControllerRolePermission sys_MvcControllerRolePermission)
 {
     base.AddObject("Sys_MvcControllerRolePermission", sys_MvcControllerRolePermission);
 }
예제 #2
0
 /// <summary>
 /// 创建新的 Sys_MvcControllerRolePermission 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="actionId">ActionId 属性的初始值。</param>
 /// <param name="roleId">RoleId 属性的初始值。</param>
 /// <param name="addTime">AddTime 属性的初始值。</param>
 /// <param name="state">State 属性的初始值。</param>
 /// <param name="sortNum">SortNum 属性的初始值。</param>
 public static Sys_MvcControllerRolePermission CreateSys_MvcControllerRolePermission(global::System.Int32 id, global::System.Int32 actionId, global::System.Int32 roleId, global::System.DateTime addTime, global::System.Boolean state, global::System.Int32 sortNum)
 {
     Sys_MvcControllerRolePermission sys_MvcControllerRolePermission = new Sys_MvcControllerRolePermission();
     sys_MvcControllerRolePermission.Id = id;
     sys_MvcControllerRolePermission.ActionId = actionId;
     sys_MvcControllerRolePermission.RoleId = roleId;
     sys_MvcControllerRolePermission.AddTime = addTime;
     sys_MvcControllerRolePermission.State = state;
     sys_MvcControllerRolePermission.SortNum = sortNum;
     return sys_MvcControllerRolePermission;
 }