Example #1
0
 /// <summary>
 /// Create a new UserRole 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>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 public static UserRole CreateUserRole(global::System.Int64 id, global::System.Int64 userID, global::System.Int64 roleID, global::System.DateTime createDate)
 {
     UserRole userRole = new UserRole();
     userRole.ID = id;
     userRole.UserID = userID;
     userRole.RoleID = roleID;
     userRole.CreateDate = createDate;
     return userRole;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserRoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserRoles(UserRole userRole)
 {
     base.AddObject("UserRoles", userRole);
 }