Link to home
Create AccountLog in
Avatar of Eutectic
Eutectic

asked on

LinQ: How to enable ExecuteQuery

I would like to use ExecuteQuery to run a direct query but for some reason it is not an option in the intellisense menu for my BusinessData context.  Is there a namespace that I'm missing or could it be the way the BusinessData context is configured?  Also, I'm not sure if it makes a difference but I am using Code First Entityframework with an Oracle database.


uiValue = BusinessData.ExecuteQuery<string>(tsql).First();


Namespaces included in my class:

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using System.Data.Objects.SqlClient;
using System.Data;
using System.Data.Objects;
using System.Linq.Dynamic;
using System.Data.Linq.SqlClient;
using System.Linq;
using System.Web;
using System.Configuration;
using System.Net;
using Newtonsoft.Json;
using System.Web.SessionState;
using System.Text;
using System.Collections.Specialized;
using System.IO;
using System.Data.Entity;
using System.Transactions;


Thanks
SOLUTION
Avatar of Gautham Janardhan
Gautham Janardhan

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of Eutectic
Eutectic

ASKER

My answer holds the detail of the solution.