예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Activities EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToActivities(Activity activity)
 {
     base.AddObject("Activities", activity);
 }
예제 #2
0
 /// <summary>
 /// Create a new Activity object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="enquiryID">Initial value of the EnquiryID property.</param>
 /// <param name="activityTypeID">Initial value of the ActivityTypeID property.</param>
 /// <param name="direction">Initial value of the Direction property.</param>
 /// <param name="details">Initial value of the Details property.</param>
 /// <param name="length">Initial value of the Length property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="assigneeID">Initial value of the AssigneeID property.</param>
 public static Activity CreateActivity(global::System.Guid id, global::System.Guid enquiryID, global::System.Guid activityTypeID, global::System.String direction, global::System.String details, global::System.String length, global::System.DateTime date, global::System.Guid assigneeID)
 {
     Activity activity = new Activity();
     activity.ID = id;
     activity.EnquiryID = enquiryID;
     activity.ActivityTypeID = activityTypeID;
     activity.Direction = direction;
     activity.Details = details;
     activity.Length = length;
     activity.Date = date;
     activity.AssigneeID = assigneeID;
     return activity;
 }
예제 #3
0
        public ActivityModel(Activity activity)
        {
            _activity = activity;

            LoadedTime = DateTime.Now;

            if (_activity.FollowUp != null)
                _followUp = new FollowUpModel(_activity.FollowUp);
        }