If ExecuteQuery method sets fields, C# 3.5 compiler issues invalid warning
at compile time:
Field '... .Contents' is never assigned to
To reproduce, create class
class Entity<T>
{
public T Contents;
}
and compile lines
Northwind db = CreateDB();
var res = db.ExecuteQuery<Entity<int>>(@"select 1 as Contents from
Customers");
How to fix ?
Andrus.