public void AddGym(DayOfWeek day, GymInfo gym) { List<GymInfo> gyms; if (!_days.TryGetValue(day, out gyms)) _days.Add(day, gyms = new List<GymInfo>()); gyms.Add(gym); }
/// <summary> /// Deprecated Method for adding a new object to the GymInfos EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToGymInfos(GymInfo gymInfo) { base.AddObject("GymInfos", gymInfo); }
/// <summary> /// Create a new GymInfo object. /// </summary> /// <param name="name">Initial value of the Name property.</param> /// <param name="body">Initial value of the Body property.</param> /// <param name="local">Initial value of the Local property.</param> /// <param name="id">Initial value of the Id property.</param> /// <param name="sysName">Initial value of the SysName property.</param> /// <param name="isActive">Initial value of the IsActive property.</param> /// <param name="groupId">Initial value of the GroupId property.</param> public static GymInfo CreateGymInfo(global::System.String name, global::System.String body, global::System.String local, global::System.Int32 id, global::System.String sysName, global::System.Boolean isActive, global::System.Int32 groupId) { GymInfo gymInfo = new GymInfo(); gymInfo.Name = name; gymInfo.Body = body; gymInfo.Local = local; gymInfo.Id = id; gymInfo.SysName = sysName; gymInfo.IsActive = isActive; gymInfo.GroupId = groupId; return gymInfo; }