/// <summary> /// Create a new ActivityView object. /// </summary> /// <param name="activityId">Initial value of the ActivityId property.</param> /// <param name="activityDate">Initial value of the ActivityDate property.</param> /// <param name="totalNumberOfClasses">Initial value of the TotalNumberOfClasses property.</param> /// <param name="totalNumberOfCounselor">Initial value of the TotalNumberOfCounselor property.</param> /// <param name="totalNumberOfRounds">Initial value of the TotalNumberOfRounds property.</param> /// <param name="districtId">Initial value of the DistrictId property.</param> /// <param name="numberOfAssigedCounselor">Initial value of the NumberOfAssigedCounselor property.</param> /// <param name="isMissingCounselors">Initial value of the IsMissingCounselors property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="endTime">Initial value of the EndTime property.</param> public static ActivityView CreateActivityView(global::System.Int32 activityId, global::System.DateTime activityDate, global::System.Int32 totalNumberOfClasses, global::System.Int32 totalNumberOfCounselor, global::System.Int32 totalNumberOfRounds, global::System.Int32 districtId, global::System.Int32 numberOfAssigedCounselor, global::System.Boolean isMissingCounselors, global::System.DateTime startTime, global::System.DateTime endTime) { ActivityView activityView = new ActivityView(); activityView.ActivityId = activityId; activityView.ActivityDate = activityDate; activityView.TotalNumberOfClasses = totalNumberOfClasses; activityView.TotalNumberOfCounselor = totalNumberOfCounselor; activityView.TotalNumberOfRounds = totalNumberOfRounds; activityView.DistrictId = districtId; activityView.NumberOfAssigedCounselor = numberOfAssigedCounselor; activityView.IsMissingCounselors = isMissingCounselors; activityView.StartTime = startTime; activityView.EndTime = endTime; return activityView; }
/// <summary> /// Deprecated Method for adding a new object to the ActivityViews EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToActivityViews(ActivityView activityView) { base.AddObject("ActivityViews", activityView); }