private protected void ExecuteAction(RelationshipAction action) { if (Parent is OGMImpl || (Parent is DynamicEntity && ((DynamicEntity)Parent).ShouldExecute)) { DbTransaction?.Register(action); } }
internal OGM ForeignItem(RelationshipAction action) { if (ForeignProperty != null && ForeignProperty.Direction == DirectionEnum.In) { return(action.InItem); } return(action.OutItem); }
internal OGM ParentItem(RelationshipAction action) { if (ForeignProperty == null || ForeignProperty.Direction == DirectionEnum.Out) { return(action.InItem); } return(action.OutItem); }