public override void Execute(BBIC bbicContext, IFBA ifbaContext)
        {
            foreach (var cal in ifbaContext.EventTable)
            {
                CalendarTable cl = new CalendarTable()
                {
                    StartDateTime = cal.StartDateTime,
                    EndDateTime = cal.EndDateTime,
                    Position = cal.Position,
                    Sensitivity = cal.Sensitivity,
                    Active = cal.Active,
                    AddressID = cal.AddressID,
                    CreatedBy = cal.CreatedBy,
                    UpdatedBy = cal.UpdatedBy,
                    CreatedDateTime = cal.CreatedDateTime,
                    UpdatedDateTime = cal.UpdatedDateTime,
                    Type = cal.Type,
                    CalendarID = cal.EventID,
                    WorkingGroupId = new Guid("21F11EFB-4EDE-4F62-B231-687C349C6365"),
                };

                CalendarLanguageTable clt = new CalendarLanguageTable()
                {
                    CalendarTable = cl,
                    LanguageId = Language.English,
                    CreatedBy = cl.CreatedBy,
                    UpdatedBy = cl.UpdatedBy,
                    CreatedDateTime = cl.CreatedDateTime,
                    UpdatedDateTime = cl.UpdatedDateTime,
                    Name = cal.Name,
                    Description = cal.Description,
                    Details = cal.Details,
                    TimeZoneID = new Guid("00000000-0001-0001-0001-000000000055"),

                };

                CalendarWorkingGroupTable cwg = new CalendarWorkingGroupTable()
                {
                    CalendarTable = cl,
                    WorkingGroupId = new Guid("21F11EFB-4EDE-4F62-B231-687C349C6365"),
                    CreatedBy = cal.CreatedBy,
                    UpdatedBy = cal.UpdatedBy,
                    CreatedDateTime = cal.CreatedDateTime,
                    UpdatedDateTime = cal.UpdatedDateTime
                };

                bbicContext.CalendarLanguageTable.InsertOnSubmit(clt);
                bbicContext.SubmitChanges();
            }
        }
Beispiel #2
0
 partial void DeleteCalendarWorkingGroupTable(CalendarWorkingGroupTable instance);
Beispiel #3
0
 partial void UpdateCalendarWorkingGroupTable(CalendarWorkingGroupTable instance);
Beispiel #4
0
 partial void InsertCalendarWorkingGroupTable(CalendarWorkingGroupTable instance);
Beispiel #5
0
		private void detach_CalendarWorkingGroupTable(CalendarWorkingGroupTable entity)
		{
			this.SendPropertyChanging();
			entity.CalendarTable = null;
		}
Beispiel #6
0
		private void attach_CalendarWorkingGroupTable(CalendarWorkingGroupTable entity)
		{
			this.SendPropertyChanging();
			entity.WorkingGroupTable = this;
		}