예제 #1
0
        public void UseNewAddress(Address newAddress)
        {
            SmartNerdDataContext _context2 = new SmartNerdDataContext();

            DataModels.Address _newAddress = new DataModels.Address
            {
                FullName        = newAddress.FullName,
                City            = newAddress.City,
                Line1           = newAddress.Line1,
                Line2           = newAddress.Line2,
                County          = newAddress.County,
                StateOrProvince = newAddress.StateOrProvince,
                ZipCode         = newAddress.ZipCode,
            };
            _context2.Addresses.InsertOnSubmit(_newAddress);
            _context2.SubmitChanges();
            _order.AddressID = _newAddress.AddressID;
        }
예제 #2
0
 public void UseNewAddress(Address newAddress)
 {
     SmartNerdDataContext _context2 = new SmartNerdDataContext();
     DataModels.Address _newAddress = new DataModels.Address
     {
         FullName = newAddress.FullName,
         City = newAddress.City,
         Line1 = newAddress.Line1,
         Line2 = newAddress.Line2,
         County = newAddress.County,
         StateOrProvince = newAddress.StateOrProvince,
         ZipCode = newAddress.ZipCode,
     };
     _context2.Addresses.InsertOnSubmit(_newAddress);
     _context2.SubmitChanges();
     _order.AddressID = _newAddress.AddressID;
 }
예제 #3
0
 internal Street Map(Street tmp)
 {
     this.Ø_Addresses = tmp.Ø_Addresses;
     return(this);
 }