partial void DeleteAddress(Address instance);
partial void InsertAddress(Address instance);
partial void UpdateAddress(Address instance);
/// <summary> /// InsertAddressMetaData /// </summary> /// <param name="ctx"></param> /// <returns></returns> private static Guid InsertAddressMetaData(DataAccessDataContext ctx, Guid userId) { //Insert Address Guid addressId = Guid.NewGuid(); Address address = new Address { Id = addressId, HouseNo = "", Street = "", Locality = "", WardId = Guid.NewGuid(), PINCODE = 560093, Registered = false, UserId = userId }; ctx.Addresses.InsertOnSubmit(address); ctx.SubmitChanges(); return addressId; }