public override void Execute(BbicApi.BBIC bbicContext, IfbaApi.IFBA ifbaContext) { foreach (var addr in ifbaContext.AddressTable) { var at = new BbicApi.AddressTable() { Active = addr.Active, City = addr.City, CreatedBy = addr.CreatedBy, UpdatedBy = addr.UpdatedBy, CreatedDateTime = addr.CreatedDateTime, UpdatedDateTime = addr.UpdatedDateTime, AddressID = addr.AddressID, CountryID = new Guid("00000000-0001-0001-0001-0000000000ED"), Latitude = addr.Latitude, Longitude = addr.Longitude, TableRowVersion = addr.TableRowVersion, Type = 1 }; var alt = new AddressLanguageTable() { Region = addr.Region, Street1 = addr.Street1, Street2 = addr.Street2, City = addr.City, CreatedBy = addr.CreatedBy, UpdatedBy = addr.UpdatedBy, CreatedDateTime = addr.CreatedDateTime, UpdatedDateTime = addr.UpdatedDateTime, LanguageId = Language.English, PostalCode = addr.PostalCode, AddressTable = at, TableRowVersion = addr.TableRowVersion }; bbicContext.AddressLanguageTable.InsertOnSubmit(alt); } bbicContext.SubmitChanges(); }
private void detach_AddressTable(AddressTable entity) { this.SendPropertyChanging(); entity.CountryTable = null; }
partial void DeleteAddressTable(AddressTable instance);
partial void UpdateAddressTable(AddressTable instance);
partial void InsertAddressTable(AddressTable instance);
private void attach_AddressTable(AddressTable entity) { this.SendPropertyChanging(); entity.TimeZoneTable = this; }