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();
        }
Esempio n. 2
0
		private void detach_AddressTable(AddressTable entity)
		{
			this.SendPropertyChanging();
			entity.CountryTable = null;
		}
Esempio n. 3
0
 partial void DeleteAddressTable(AddressTable instance);
Esempio n. 4
0
 partial void UpdateAddressTable(AddressTable instance);
Esempio n. 5
0
 partial void InsertAddressTable(AddressTable instance);
Esempio n. 6
0
		private void attach_AddressTable(AddressTable entity)
		{
			this.SendPropertyChanging();
			entity.TimeZoneTable = this;
		}