Exemplo n.º 1
0
partial         void InsertBlockInstallation(BlockInstallation bi)
        {
            foreach (var PreviousInstallationOfThisBlock in BlockInstallation.Where(i => i.BlockId == bi.BlockId && i.EndDate == null))
            {
                PreviousInstallationOfThisBlock.EndDate = bi.StartDate;
                ExecuteDynamicUpdate(PreviousInstallationOfThisBlock);
            }

            var PlaceHistory = BlockInstallation.Where(i => i.LocomotiveId == bi.LocomotiveId && i.PlaceId == bi.PlaceId);
            InsertContinuousIntoSequence(bi, PlaceHistory);
            ExecuteDynamicInsert(bi);
        }
Exemplo n.º 2
0
 partial void DeleteBlockInstallation(BlockInstallation instance);
Exemplo n.º 3
0
 partial void UpdateBlockInstallation(BlockInstallation instance);
Exemplo n.º 4
0
 partial void InsertBlockInstallation(BlockInstallation instance);
Exemplo n.º 5
0
		private void detach_BlockInstallation(BlockInstallation entity)
		{
			this.SendPropertyChanging();
			entity.Locomotive = null;
		}
Exemplo n.º 6
0
		private void attach_BlockInstallation(BlockInstallation entity)
		{
			this.SendPropertyChanging();
			entity.Block = this;
		}