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); }
protected override IConstraint GetCondition(ITableSource mainTable, IQuery query) { var isPhantomColumn = mainTable.FindColumn(EntityPhantomExtension.IsPhantomProperty); return(isPhantomColumn.Equal(BooleanBoxes.False)); }