Exemplo n.º 1
0
        TResult IQueryProvider.Execute <TResult>(Expression expression)
        {
            // if session is null, it means that query is not executable - it should be used only to DEFINE a query and translate it to SQL
            // but not execute it. Example: DbView definition
            Util.Check(Session != null, "The query is not executable. Query: {0}", expression);
            var objResult = Session.ExecuteQuery <TResult>(expression);

            return(objResult);
        }