protected string GetFilterExpression(bool noExpressFilterExpression) { if (EntityFilterID != null) { DefaultFilterExpression = EntityFilter.GetFilterExpression(); ResultFilterExpression = CombineAllExpression(noExpressFilterExpression); return(ResultFilterExpression); } else { DefaultFilterExpression = Template.GetFilterExpressionByAttrID(); ResultFilterExpression = CombineAllExpression(noExpressFilterExpression); return(ResultFilterExpression); } }