partial void DeletePropertyCurrentValue(PropertyCurrentValue instance);
private void detach_PropertyCurrentValue(PropertyCurrentValue entity) { this.SendPropertyChanging(); entity.Locomotive = null; }
partial void UpdatePropertyCurrentValue(PropertyCurrentValue instance);
partial void InsertPropertyCurrentValue(PropertyCurrentValue instance);
private void detach_PropertyCurrentValue(PropertyCurrentValue entity) { this.SendPropertyChanging(); entity.ServiceAction = null; }
private void detach_PropertyCurrentValue(PropertyCurrentValue entity) { this.SendPropertyChanging(); entity.DicPropertyKind = null; }
partial void InsertPropertyCurrentValue(PropertyCurrentValue pv) { pv.StartDate = pv.ServiceAction.ActionDate; pv.LocomotiveId = pv.ServiceAction.LocomotiveId; var PropertyHistory = PropertyCurrentValue.Where(p => p.LocomotiveId == pv.LocomotiveId && p.PropertyKindId == pv.PropertyKindId); InsertContinuousIntoSequence(pv, PropertyHistory); ExecuteDynamicInsert(pv); }