I'm a new beginner to the entity framework .
I try to write te following method but i get a compile time error.
protected static void EntitySQLQuery(AWEntities context)
{
string cmd = @"SELECT VALUE c FROM AWEntities.Person AS c WHERE c.FirstName = @FirstName";
ObjectQuery<Person> persons = new ObjectQuery<Person>(cmd, context);//Error
}
The best overloaded method match for 'System.Data.Objects.ObjectQuery.ObjectQuery(string, System.Data.Objects.ObjectContext)' has some invalid arguments