예제 #1
0
 private protected void ExecuteAction(RelationshipAction action)
 {
     if (Parent is OGMImpl || (Parent is DynamicEntity && ((DynamicEntity)Parent).ShouldExecute))
     {
         DbTransaction?.Register(action);
     }
 }
예제 #2
0
        internal OGM ForeignItem(RelationshipAction action)
        {
            if (ForeignProperty != null && ForeignProperty.Direction == DirectionEnum.In)
            {
                return(action.InItem);
            }

            return(action.OutItem);
        }
예제 #3
0
        internal OGM ParentItem(RelationshipAction action)
        {
            if (ForeignProperty == null || ForeignProperty.Direction == DirectionEnum.Out)
            {
                return(action.InItem);
            }

            return(action.OutItem);
        }