Beispiel #1
0
        /// <summary>
        /// Create a new UserToRole object.
        /// </summary>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="userID">Initial value of the UserID property.</param>
        /// <param name="roleID">Initial value of the RoleID property.</param>
        public static UserToRole CreateUserToRole(global::System.Int32 id, global::System.Int32 userID, global::System.Int32 roleID)
        {
            UserToRole userToRole = new UserToRole();

            userToRole.Id     = id;
            userToRole.UserID = userID;
            userToRole.RoleID = roleID;
            return(userToRole);
        }
Beispiel #2
0
 /// <summary>
 /// Create a new UserToRole object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 public static UserToRole CreateUserToRole(global::System.Int32 id, global::System.Int32 userID, global::System.Int32 roleID)
 {
     UserToRole userToRole = new UserToRole();
     userToRole.Id = id;
     userToRole.UserID = userID;
     userToRole.RoleID = roleID;
     return userToRole;
 }
Beispiel #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserToRole EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserToRole(UserToRole userToRole)
 {
     base.AddObject("UserToRole", userToRole);
 }
Beispiel #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserToRole EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserToRole(UserToRole userToRole)
 {
     base.AddObject("UserToRole", userToRole);
 }