コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the RoleFunctions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoleFunctions(RoleFunction roleFunction)
 {
     base.AddObject("RoleFunctions", roleFunction);
 }
コード例 #2
0
 /// <summary>
 /// Create a new RoleFunction object.
 /// </summary>
 /// <param name="roleFunctionID">Initial value of the RoleFunctionID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 /// <param name="functionID">Initial value of the FunctionID property.</param>
 /// <param name="permission">Initial value of the Permission property.</param>
 public static RoleFunction CreateRoleFunction(global::System.Int32 roleFunctionID, global::System.Int32 roleID, global::System.Int32 functionID, global::System.Int32 permission)
 {
     RoleFunction roleFunction = new RoleFunction();
     roleFunction.RoleFunctionID = roleFunctionID;
     roleFunction.RoleID = roleID;
     roleFunction.FunctionID = functionID;
     roleFunction.Permission = permission;
     return roleFunction;
 }