I have a SQL 2000 backend. SQL 2000 does not support Entity Framework v2. I would like to use LINQ to manipulate collections in memory.
Assuming I do not use Entity Framework v2, are there any parts of LINQ in .NET 4 that do not 开发者_开发问答work with SQL 2000? Are TableAdapters doing CRUD operations ok to use?
As far as I know, using Entity framework requires the explicit addition of a *.edmx file. So adding *.dmbl (linq to sql) or DataSet (*.xsd)
is not a problem. Is this correct? In other words, do any functions of LINQ generate incompatible code, e.g. entities?
There are some limitations using Skip
and Take
in linq2Sql with SQL 2000.
MSDN:
You must use identity members (IsPrimaryKey) when you use Take or Skip against a SQL Server 2000 database. The query must be against a single table (that is, not a join), or be a Distinct, Except, Intersect, or Union operation, and must not include a Concat operation. For more information, see the "SQL Server 2000 Support" section in Standard Query Operator Translation (LINQ to SQL).
This requirement does not apply to SQL Server 2005.
For some more info on unsupported features, see "SQL Server 2000 Support" section on http://msdn.microsoft.com/en-us/library/bb399342.aspx
精彩评论