Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Activity object.
 /// </summary>
 /// <param name="activityID">Initial value of the ActivityID property.</param>
 /// <param name="typeID">Initial value of the TypeID property.</param>
 /// <param name="addressID">Initial value of the AddressID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="isCompleted">Initial value of the IsCompleted property.</param>
 /// <param name="isInvoiced">Initial value of the IsInvoiced property.</param>
 /// <param name="endDate">Initial value of the EndDate property.</param>
 /// <param name="ownerID">Initial value of the OwnerID property.</param>
 /// <param name="executerID">Initial value of the ExecuterID property.</param>
 public static Activity CreateActivity(global::System.Int32 activityID, global::System.Int32 typeID, global::System.Int32 addressID, global::System.String name, global::System.String description, global::System.Boolean isCompleted, global::System.Boolean isInvoiced, global::System.DateTime endDate, global::System.Int32 ownerID, global::System.Int32 executerID)
 {
     Activity activity = new Activity();
     activity.ActivityID = activityID;
     activity.TypeID = typeID;
     activity.AddressID = addressID;
     activity.Name = name;
     activity.Description = description;
     activity.IsCompleted = isCompleted;
     activity.IsInvoiced = isInvoiced;
     activity.EndDate = endDate;
     activity.OwnerID = ownerID;
     activity.ExecuterID = executerID;
     return activity;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Activity EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToActivity(Activity activity)
 {
     base.AddObject("Activity", activity);
 }