/// <summary> /// Deprecated Method for adding a new object to the location EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTolocation(location location) { base.AddObject("location", location); }
/// <summary> /// Create a new location object. /// </summary> /// <param name="name">Initial value of the name property.</param> /// <param name="address1">Initial value of the address1 property.</param> /// <param name="address2">Initial value of the address2 property.</param> /// <param name="address3">Initial value of the address3 property.</param> /// <param name="city">Initial value of the city property.</param> /// <param name="locality1">Initial value of the locality1 property.</param> /// <param name="locality2">Initial value of the locality2 property.</param> /// <param name="postal_code">Initial value of the postal_code property.</param> /// <param name="country">Initial value of the country property.</param> /// <param name="telephone">Initial value of the telephone property.</param> /// <param name="fax">Initial value of the fax property.</param> /// <param name="email">Initial value of the email property.</param> /// <param name="contact_person">Initial value of the contact_person property.</param> public static location Createlocation(global::System.String name, global::System.String address1, global::System.String address2, global::System.String address3, global::System.String city, global::System.String locality1, global::System.String locality2, global::System.String postal_code, global::System.String country, global::System.String telephone, global::System.String fax, global::System.String email, global::System.String contact_person) { location location = new location(); location.name = name; location.address1 = address1; location.address2 = address2; location.address3 = address3; location.city = city; location.locality1 = locality1; location.locality2 = locality2; location.postal_code = postal_code; location.country = country; location.telephone = telephone; location.fax = fax; location.email = email; location.contact_person = contact_person; return location; }