The name ... does not exist in the current context.
Hi,
I have a context like this:
I did a test to see if it could connect.. yes it could.
I can see all the tables in LindPaq but it fail to do any queries.. like Accounts.Take (100) i get the error saying the name 'Accounts' does not exist in the current context.
Any ideas ? I am pretty sure i have the right DLL and everything.
I have a context like this:
/// <summary>
/// Constructeur qui récupère automatiquement la chaîne de connection.
/// </summary>
/// <remarks>Nécessaire pour les commandes de migrations de EF > 4.3.</remarks>
public ScsContext()
: base(ConfigurationUtility.GetConnectionString())
{
}
/// <summary>
/// Constructeur qui prend en paramètre une chaine de connection.
/// </summary>
/// <param name="connectionString">Chaîne de connexion.</param>
public ScsContext(string connectionString)
: base(connectionString)
{
}
I selected my persistence assembly which contains the ScsContext. Ive been able to select the ScsContext and i choosen the parameterless constructor and then the config file where is located the connection string.I did a test to see if it could connect.. yes it could.
I can see all the tables in LindPaq but it fail to do any queries.. like Accounts.Take (100) i get the error saying the name 'Accounts' does not exist in the current context.
Any ideas ? I am pretty sure i have the right DLL and everything.
Comments
-
Forgot to mention that this context inherit from a ContextBase but i doubt this is the problem.