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

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.
 
A

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.
 
J

Jon Skeet [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top