Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Subscriptions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSubscriptions(Subscription subscription)
 {
     base.AddObject("Subscriptions", subscription);
 }
Example #2
0
 /// <summary>
 /// Create a new Subscription object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="updatedOn">Initial value of the UpdatedOn property.</param>
 public static Subscription CreateSubscription(global::System.Int32 id, global::System.Int32 customerID, global::System.DateTime createdOn, global::System.DateTime updatedOn)
 {
     Subscription subscription = new Subscription();
     subscription.ID = id;
     subscription.CustomerID = customerID;
     subscription.CreatedOn = createdOn;
     subscription.UpdatedOn = updatedOn;
     return subscription;
 }