/// <summary> /// Deprecated Method for adding a new object to the Hospitals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHospitals(Hospital hospital) { base.AddObject("Hospitals", hospital); }
/// <summary> /// Create a new Hospital object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="phone">Initial value of the Phone property.</param> public static Hospital CreateHospital(global::System.Int64 id, global::System.String name, global::System.String city, global::System.String state, global::System.String address, global::System.String phone) { Hospital hospital = new Hospital(); hospital.Id = id; hospital.Name = name; hospital.City = city; hospital.State = state; hospital.Address = address; hospital.Phone = phone; return hospital; }