/// <summary> /// Create a new UserContract object. /// </summary> /// <param name="userContractId">Initial value of the UserContractId property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="contractId">Initial value of the ContractId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="isDeleted">Initial value of the IsDeleted property.</param> public static UserContract CreateUserContract(global::System.Int32 userContractId, global::System.Guid userId, global::System.Int32 contractId, global::System.String name, global::System.DateTime createDate, global::System.String createdBy, global::System.Boolean isDeleted) { UserContract userContract = new UserContract(); userContract.UserContractId = userContractId; userContract.UserId = userId; userContract.ContractId = contractId; userContract.Name = name; userContract.CreateDate = createDate; userContract.CreatedBy = createdBy; userContract.IsDeleted = isDeleted; return userContract; }
/// <summary> /// Deprecated Method for adding a new object to the UserContracts EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserContracts(UserContract userContract) { base.AddObject("UserContracts", userContract); }