Ejemplo n.º 1
0
        public TEntity FirstOrDefault(Expression <Func <TEntity, bool> > predicate)
        {
            object args   = new object();
            string sql    = this._builder.BuildSelectByLamda(predicate, out args);
            var    result = this._executeQuery.QuerySingle <TEntity>(sql, args);

            _queryContext.Clear();
            return(result);
        }