Exemplo n.º 1
0
        public virtual int GetModelInfoListCount(Expression <Func <TEntity, bool> > exp)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("select count(*) from ");
            sb.Append(this.TableName);
            sb.Append(" where ");
            sb.Append(GetWhereStr(exp));
            return((int)SQLDbHelper.GetSingle(sb.ToString()));
        }