Per the many examples of LINQ I've seen, I'm creating my own data context and tables using code similar to the one below:
class MyDatabase : DataContext {
public Table<Widget> Widgets;
public Table<Car> Cars;
public MyDatabase (string connection) : base(connection) { }
}
But for every table (Widgets, Cars, etc), I get the warning Field 'TableName' is never assigned. I can't find anyone on Google that also has this problem. I don't feel like I'm doing anything wrong since I'm just copying the LINQ examples I've seen from different places. So what's up with this warning? Is it warning me of a real problem? Or am I missing something?