Ejemplo n.º 1
0
        protected override void InDatastoreLogic(Relationship relationship)
        {
            Entity entity = InItem !.GetEntity();

            if (entity.IsSelfOrSubclassOf(relationship.InEntity))
            {
                if (relationship.OutProperty is null || relationship.OutProperty.Nullable || relationship.OutProperty.PropertyType == PropertyType.Collection)
                {
                    PersistenceProvider.Remove(relationship, InItem, (OGM?)null, null, false);
                }
            }
            if (entity.IsSelfOrSubclassOf(relationship.OutEntity))
            {
                if (relationship.InProperty is null || relationship.InProperty.Nullable || relationship.InProperty.PropertyType == PropertyType.Collection)
                {
                    PersistenceProvider.Remove(relationship, (OGM?)null, OutItem, null, false);
                }
            }
        }
 protected override void InDatastoreLogic(Relationship Relationship)
 {
     PersistenceProvider.Remove(Relationship, InItem, OutItem, Moment, true);
 }
Ejemplo n.º 3
0
 protected override void InDatastoreLogic(Relationship relationship)
 {
     PersistenceProvider.Remove(relationship, InItem, OutItem, null, false);
 }