Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Plan EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPlan(Plan plan)
 {
     base.AddObject("Plan", plan);
 }
Example #2
0
 /// <summary>
 /// Create a new Plan object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="spaceLimit">Initial value of the SpaceLimit property.</param>
 /// <param name="bandwidthLimit">Initial value of the BandwidthLimit property.</param>
 /// <param name="aPIRequestLimit">Initial value of the APIRequestLimit property.</param>
 /// <param name="moduleLimit">Initial value of the ModuleLimit property.</param>
 public static Plan CreatePlan(global::System.Int32 id, global::System.String name, global::System.Double price, global::System.Int32 spaceLimit, global::System.Int32 bandwidthLimit, global::System.Int32 aPIRequestLimit, global::System.Int32 moduleLimit)
 {
     Plan plan = new Plan();
     plan.Id = id;
     plan.Name = name;
     plan.Price = price;
     plan.SpaceLimit = spaceLimit;
     plan.BandwidthLimit = bandwidthLimit;
     plan.APIRequestLimit = aPIRequestLimit;
     plan.ModuleLimit = moduleLimit;
     return plan;
 }