/// <summary> /// Create a new ActivityType object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> public static ActivityType CreateActivityType(global::System.Guid id, global::System.String name) { ActivityType activityType = new ActivityType(); activityType.ID = id; activityType.Name = name; return activityType; }
/// <summary> /// Deprecated Method for adding a new object to the ActivityTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToActivityTypes(ActivityType activityType) { base.AddObject("ActivityTypes", activityType); }