コード例 #1
0
 /// <summary>
 /// Create a new ServiceContract object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="contractReference">Initial value of the ContractReference property.</param>
 /// <param name="contractName">Initial value of the ContractName property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="currentContract">Initial value of the CurrentContract property.</param>
 /// <param name="rowVersion">Initial value of the RowVersion property.</param>
 public static ServiceContract CreateServiceContract(global::System.Int32 id, global::System.String contractReference, global::System.String contractName, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Boolean currentContract, global::System.Byte[] rowVersion)
 {
     ServiceContract serviceContract = new ServiceContract();
     serviceContract.Id = id;
     serviceContract.ContractReference = contractReference;
     serviceContract.ContractName = contractName;
     serviceContract.StartDate = startDate;
     serviceContract.EndDate = endDate;
     serviceContract.CurrentContract = currentContract;
     serviceContract.RowVersion = rowVersion;
     return serviceContract;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ServiceContracts EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToServiceContracts(ServiceContract serviceContract)
 {
     base.AddObject("ServiceContracts", serviceContract);
 }