Пример #1
0
        public override string ToString()
        {
            var mapper = DapperConfiguration.GetMapper <TEntity>();
            var query  = new QueryBuilder(mapper);

            return(query.Build(Expression));
        }
Пример #2
0
        private object ExecuteInternal(Expression expression)
        {
            var mapper       = DapperConfiguration.GetMapper <TEntity>();
            var queryBuilder = new QueryBuilder(mapper);

            var sql = queryBuilder.Build(expression);

            return(this.Query(sql));
        }
Пример #3
0
        public QueryBase(TEntity entity)
        {
            Mapper = DapperConfiguration.GetMapper <TEntity>();

            Entity = entity;
        }