Client-only framework subset does not find System.Data.Linq

  • Thread starter Thread starter Andrus
  • Start date Start date
A

Andrus

Checking

Client-only framework subset in VS2008 SP1 project properties causes in my
application compile error

The type 'System.Data.Linq.ITable' is defined in an assembly that is not
referenced. You must add a reference to assembly 'System.Data.Linq,
Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

In solution explorer References Yellow exclamation sign appeas in
System.Data.Linq assembly and resolved in False.

Compile error occurs in main project at line

Table<TEntity> RowTable;

Table<> is class defined in other project which is included in solution:

public class Table<T> :
IQueryable<T>
, IOrderedQueryable<T>
, System.Data.Linq.ITable
,
....

}

How to fix ?

Andrus.
 
Don't use the client-only framework subset?

In this case application users must install whole 3.5 framework.

Why System.Data.Linq.dll is not in this subset ?

Andrus.
 
Andrus said:
In this case application users must install whole 3.5 framework.

Why System.Data.Linq.dll is not in this subset ?

Presumably because most code talking to a database is on the server
side. You've got to draw the line *somewhere* otherwise *everyone* has
to download the whole framework.
 
Back
Top