Ejemplo 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);
        }
Ejemplo n.º 2
0
 partial void DeleteBlockInstallation(BlockInstallation instance);
Ejemplo n.º 3
0
 partial void UpdateBlockInstallation(BlockInstallation instance);
Ejemplo n.º 4
0
 partial void InsertBlockInstallation(BlockInstallation instance);
Ejemplo n.º 5
0
		private void detach_BlockInstallation(BlockInstallation entity)
		{
			this.SendPropertyChanging();
			entity.Locomotive = null;
		}
Ejemplo n.º 6
0
		private void attach_BlockInstallation(BlockInstallation entity)
		{
			this.SendPropertyChanging();
			entity.Block = this;
		}