Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Subscription object.
 /// </summary>
 /// <param name="subscriptionId">Initial value of the SubscriptionId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="userCreditCardId">Initial value of the UserCreditCardId property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 /// <param name="isDisputed">Initial value of the IsDisputed property.</param>
 /// <param name="startDate">Initial value of the StartDate property.</param>
 /// <param name="nextChargeDate">Initial value of the NextChargeDate property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static Subscription CreateSubscription(global::System.Int64 subscriptionId, global::System.Int32 productId, global::System.Guid userId, global::System.Int32 userCreditCardId, global::System.Boolean isActive, global::System.Boolean isDisputed, global::System.DateTime startDate, global::System.DateTime nextChargeDate, global::System.Boolean isDeleted)
 {
     Subscription subscription = new Subscription();
     subscription.SubscriptionId = subscriptionId;
     subscription.ProductId = productId;
     subscription.UserId = userId;
     subscription.UserCreditCardId = userCreditCardId;
     subscription.IsActive = isActive;
     subscription.IsDisputed = isDisputed;
     subscription.StartDate = startDate;
     subscription.NextChargeDate = nextChargeDate;
     subscription.IsDeleted = isDeleted;
     return subscription;
 }
Ejemplo n.º 2
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);
 }