Exemplo n.º 1
0
        public void UpdateAddress(Address address)
        {
            Address originalAddr = GetAddress(address.AddressId);

            originalAddr.Address1 = address.Address1;
            originalAddr.City = address.City;
            originalAddr.Complement = address.Complement;
            originalAddr.Neighborhood = address.Neighborhood;
            originalAddr.Number = address.Number;
            originalAddr.Postcode = address.Postcode;
            originalAddr.State = address.State;

            context.SubmitChanges();
        }
Exemplo n.º 2
0
        public static Address GetHomeAddress(Applicant applicant, string postcode)
        {
            Address address = new Address
            {
                Address1 = "Line 1",
                Applicant = applicant,
                Neighborhood = "My Neighborhood",
                DateAdded = DateTime.Now,
                UserAdderId = Guid.Parse("D867862C-462B-4262-A3A1-0A7B8DB2D5D1"),
                State = "Rio",
                Postcode = postcode,
                City = "My City",
                Number = "7"

            };

            return address;
        }
Exemplo n.º 3
0
 partial void DeleteAddress(Address instance);
Exemplo n.º 4
0
 partial void UpdateAddress(Address instance);
Exemplo n.º 5
0
 partial void InsertAddress(Address instance);
Exemplo n.º 6
0
		private void detach_Addresses(Address entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Membership = null;
		}
Exemplo n.º 7
0
		private void detach_Addresses(Address entity)
		{
			this.SendPropertyChanging();
			entity.Applicant = null;
		}