Exemple #1
0
        protected override void NodeCreationChange(EntityChangeNodeCreation item)
        {
            IEnumerable <EntityChangeDescriptor> temp = ChangeLog.Where(p => p.Entity == item.Entity);

            if (temp.Any(p => p is EntityChangeNodeCreation == false))
            {
                throw new InvalidOperationException("Unable to schedule a node creation for an entity already tracked.");
            }

            if (!temp.Any())
            {
                ChangeLog.Add(item);
            }
        }
 protected abstract void NodeCreationChange(EntityChangeNodeCreation item);