/// <summary>
 /// Create a new UserPrivilege object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="privilege">Initial value of the Privilege property.</param>
 public static UserPrivilege CreateUserPrivilege(global::System.Guid id, global::System.String userId, global::System.String privilege)
 {
     UserPrivilege userPrivilege = new UserPrivilege();
     userPrivilege.Id = id;
     userPrivilege.UserId = userId;
     userPrivilege.Privilege = privilege;
     return userPrivilege;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the UserPrivileges EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserPrivileges(UserPrivilege userPrivilege)
 {
     base.AddObject("UserPrivileges", userPrivilege);
 }