示例#1
0
 protected override IConstraint GetCondition(ITableSource tableSource, IQuery query)
 {
     if (tableSource.EntityRepository.EntityMeta.IsPhantomEnabled)
     {
         var isPhantomColumn = tableSource.FindColumn(EntityPhantomExtension.IsPhantomProperty);
         return(isPhantomColumn.Equal(BooleanBoxes.False));
     }
     return(null);
 }
示例#2
0
            protected override IConstraint GetCondition(ITableSource mainTable, IQuery query)
            {
                var isPhantomColumn = mainTable.FindColumn(EntityPhantomExtension.IsPhantomProperty);

                return(isPhantomColumn.Equal(BooleanBoxes.False));
            }