/// <summary> /// Create a new UserApplication object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="hasBeenConvicted">Initial value of the HasBeenConvicted property.</param> /// <param name="hasEverBeenUnlawfulDetainer">Initial value of the HasEverBeenUnlawfulDetainer property.</param> public static UserApplication CreateUserApplication(global::System.Int32 userId, global::System.Boolean hasBeenConvicted, global::System.Boolean hasEverBeenUnlawfulDetainer) { UserApplication userApplication = new UserApplication(); userApplication.UserId = userId; userApplication.HasBeenConvicted = hasBeenConvicted; userApplication.HasEverBeenUnlawfulDetainer = hasEverBeenUnlawfulDetainer; return userApplication; }
/// <summary> /// Deprecated Method for adding a new object to the UserApplications EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserApplications(UserApplication userApplication) { base.AddObject("UserApplications", userApplication); }