예제 #1
0
        public Address CreateAddress(string Street, string City, string State, string Zip)
        {
            Address address = new Address();

            address.Street = Street;
            address.City = City;
            address.State = State;
            address.Zip = Zip;

            return address;
        }
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="street">Initial value of the Street property.</param>
 /// <param name="city">Initial value of the City property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="zip">Initial value of the Zip property.</param>
 public static Address CreateAddress(global::System.Int32 id, global::System.String street, global::System.String city, global::System.String state, global::System.String zip)
 {
     Address address = new Address();
     address.Id = id;
     address.Street = street;
     address.City = city;
     address.State = state;
     address.Zip = zip;
     return address;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Addresses EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAddresses(Address address)
 {
     base.AddObject("Addresses", address);
 }