/// <summary> /// Create a new Activity object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="activityDate">Initial value of the ActivityDate property.</param> /// <param name="numberOfCounselor">Initial value of the NumberOfCounselor property.</param> /// <param name="totalNumberOfClasses">Initial value of the TotalNumberOfClasses property.</param> /// <param name="numberOfRounds">Initial value of the NumberOfRounds property.</param> /// <param name="startTime">Initial value of the StartTime property.</param> /// <param name="endTime">Initial value of the EndTime property.</param> /// <param name="isOpenForCounselorsCommit">Initial value of the IsOpenForCounselorsCommit property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="activity_ActivityStatus">Initial value of the Activity_ActivityStatus property.</param> public static Activity CreateActivity(global::System.Int32 id, global::System.DateTime activityDate, global::System.Int32 numberOfCounselor, global::System.Int32 totalNumberOfClasses, global::System.Int32 numberOfRounds, global::System.DateTime startTime, global::System.DateTime endTime, global::System.Boolean isOpenForCounselorsCommit, global::System.Byte[] rowVersion, global::System.Int32 activity_ActivityStatus) { Activity activity = new Activity(); activity.Id = id; activity.ActivityDate = activityDate; activity.NumberOfCounselor = numberOfCounselor; activity.TotalNumberOfClasses = totalNumberOfClasses; activity.NumberOfRounds = numberOfRounds; activity.StartTime = startTime; activity.EndTime = endTime; activity.IsOpenForCounselorsCommit = isOpenForCounselorsCommit; activity.RowVersion = rowVersion; activity.Activity_ActivityStatus = activity_ActivityStatus; return activity; }
/// <summary> /// Deprecated Method for adding a new object to the Activities EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToActivities(Activity activity) { base.AddObject("Activities", activity); }