Reputation: 3819
I am trying to run a simple code in LINQPad as either C# Program or C# Statements:
var query = dbtable.Where(f => f.date== new DateTime(2011,10,18));
fd.Dump();
I get the following error:
Cannot implicitly convert type 'System.Linq.IQueryable' to 'LINQPad.User.var'. An explicit conversion exists (are you missing a cast?)
Before you ask: no, I did not create a "var" type.
Anybody has any idea?
Upvotes: 2
Views: 755
Reputation: 3819
Answering my own question:
It just realized that one of the 200+ tables in the db I am looking at is called "var". LinqPad automatically creates a "var" type.
As Joe Albahari mentioned, this happens because the "Capitalize Property Names" was turned off. Thanks Joe.
Upvotes: 3