LINQ to SQL (Pre-Release) announcement
-
Link
Performance
- Query plans are reused more often by specifically defining text parameter lengths
- Identity cache lookups for primary key with single result now includes query.Where(predicate).Single()/SingleOrDefault/First/FirstOrDefault
- Reduced query execution overhead when DataLoadOptions specified (cache lookup considers DataLoadOptions value equivalency – post beta 1)
Usability
- ITable<T> interface for additional mocking possibilities
- Contains with enums automatically casts to int or string depending on column type
- Associations can now specify non-primary-key columns on the other end of the association
- Support list initialization syntax for queries
- LinqDataSource now supports inherited entities
- LinqDataSource support for Dynamic Data query extenders added
Query stability
- Contains now detects self-referencing IQueryable and doesn't cause a stack overflow
- Skip(0) no longer prevents eager loading
- GetCommand operates within SQL Compact transactions
- Exposing Link<T> on a property/field is detected and reported correctly
- Compiled queries now correctly detect a change in mapping source and throw
- String.StartsWith, EndsWith and Contains now correctly handles ~ in the search string
- Now detects multiple active result sets (MARS) better
- Associations are properly created between entities when using eager loading with Table-Valued Functions (TVFs)
- Queries that contain sub-queries with scalar projections now work better
Update stability
- SubmitChanges no longer silently consumes transaction rollback exceptions
- SubmitChanges deals with timestamps in a change conflict scenario properly
- IsDbGenerated now honors renamed properties that don't match underlying column name
- Server-generated columns and SQL replication/triggers now work instead of throwing SQL exception
General stability
- Binary types equate correctly after deserialization
- EntitySet.ListChanged fired when adding items to an unloaded entity set
- Dispose our connections upon context disposal (ones passed in are untouched)
SQL Metal
- Foreign key property setter now checks all affected associations not just the first
- Improved error handling when primary key type not supported
- Now skips stored procedures containing table-valued parameters instead of aborting process
- Can now be used against connections that use AttachDbFilename syntax
- No longer crashes when unexpected data types are encountered
LINQ to SQL class designer
- Now handles a single anonymously named column in SQL result set
- Improved error message for associations to nullable unique columns
- No longer fails when using clauses are added to the partial user class
- VarChar(1) now correctly maps to string and not char
- Decimal precision and scale are now emitted correctly in the DbType attributes for stored procedures
- Foreign key changes will be picked up when bringing tables back into the designer without a restart
Code generation (SQL Metal + LINQ to SQL class designer)
- Stored procedures using original values now compiles when the entity and context namespaces differ
- Virtual internal now generates correct syntax
- Mapping attributes are now fully qualified to prevent conflicts with user types
- KnownTypeAttributes are now emitted for DataContractSerializer with inheritance
- Delay-loaded foreign keys now have the correct, compilable, code generated
- Using stored procedures with concurrency no longer gets confused if entities in different namespace to context
- ForeignKeyReferenceAlreadyHasValueException is now thrown if any association is loaded not just the first
Found 77 threads
-
0 VotesNotice:This forum will be retired in a few days. Please do not post new threads here.
This forum will be retired in a few days. Please do not post new thread here. Thank you for your understanding. April 22, 2011 -
0 VotesRestore the CCAMAwards.bak file in your SQL Server 2008 Express
Hi,could someone explain about Restoring the CCAMAwards.bak file in SQL Server 2008 Express,i found few ways but I cant do it,if some one knows different methods i would really appreciate ... -
0 VotesHow to convert pdf to PNG fastly and quickly?
Ovweview of convert pdf to png converter pdf ...Unanswered | 1 Replies | 13623 Views | Created by ruthyang - Thursday, August 19, 2010 8:40 AM | Last reply by fionabase - Wednesday, April 20, 2011 7:58 AM -
0 VotesConvert Boolean to condition in Expression tree
x.Contains("bla") thanks semi developerUnanswered | 1 Replies | 7264 Views | Created by nima_API - Monday, March 7, 2011 7:39 PM | Last reply by Abdul Sami Siddiqui - Wednesday, April 13, 2011 6:27 PM -
0 VotesLinq returing Object to DataTable
I have a function: public static Object getAllUsersAppsTimesForDate(int id, int dayID) { ...Unanswered | 2 Replies | 9066 Views | Created by muallim_ul_ilm - Monday, January 31, 2011 8:00 PM | Last reply by Abdul Sami Siddiqui - Wednesday, April 13, 2011 6:20 PM -
0 VotesLINQ help
Let say I have a Product entity and it has a Price property. I have a list of product List<Product> products. How can I use LINQ to group a list of Products that sum up ...Unanswered | 1 Replies | 5620 Views | Created by MissingDogs - Tuesday, April 12, 2011 2:29 AM | Last reply by Abdul Sami Siddiqui - Wednesday, April 13, 2011 6:11 PM -
0 VotesLINQ In Automate Data Manipulation Control
Hello, One Thing That I Could Find Any Help Is This. BACKGROUND I Have a User Control Named TABLEVIEW For Data ...Unanswered | 0 Replies | 6099 Views | Created by Abdul Sami Siddiqui - Wednesday, April 13, 2011 5:32 PM -
0 VotesHelp: Stored Proc vs. LinQ
Hi all, We asked our vendor to put our custom codes into stored proc for an ETL process on our SQL server. The ETL process is going to deal with transformation and loading ... -
0 VotesHow to left join two Datables?
Here i my Scenario I Have First Datable ...Unanswered | 2 Replies | 7814 Views | Created by Crimsonland - Friday, October 22, 2010 5:55 AM | Last reply by Lay_Lay - Sunday, April 3, 2011 5:17 AM -
0 VotesAttach Database with password in linq to sql
Hello Everyone, I wish to create a sql server database in a remote server and attach it to the remote server and also give a password to the database when creating it. Is this ...Unanswered | 1 Replies | 7529 Views | Created by Samudra Vishvajith - Tuesday, January 11, 2011 5:56 AM | Last reply by Andres Michel - Sunday, April 3, 2011 12:15 AM -
0 VotesHow to use LINQ
4101 CPN -> 47449 DRAW -> 821 TEAM ->(0) INPUT METHOD -> Slip TYPE -> ...Unanswered | 1 Replies | 7055 Views | Created by kizildag - Friday, February 4, 2011 2:58 PM | Last reply by Andres Michel - Sunday, April 3, 2011 12:01 AM -
0 VotesStored Proc with Output parametes -- values not returned.
Using Linq to Sql and invoking a sproc where there are output parameters, the output parameter is not getting set even though the stored is working correctly. To test the sproc I called it ... -
0 VotesHow to write a linqdatasource _inserting (object sender,linqDatasourceInsertEvent args)?
How to write a linqdatasource _inserting (object sender,linqDatasourceInsertEvent args)? I use a detail view (select from masterview already), but when i write back to sql i will ... -
0 VotesHow to convert var result from LINQ to Dataset
I looked on google but not able to find efficient answer to this. I have seen http://blogs.msdn.com/b/aconrad/archive/2007/09/07/science-project.aspx but it seems that MS ...Proposed | 1 Replies | 7267 Views | Created by Rupesh Shivarkar - Wednesday, February 23, 2011 3:16 PM | Last reply by getsrirams - Monday, March 14, 2011 12:06 PM -
0 VotesEmitDefaultValue Code Generation Problem - Failed to generate code for the service reference
Good afternoon everybody I develop a Windows Phone 7 client which consume a WCF service. The first problem I encountered is I couldn't get the foreign key property of the Linq to ...Answered | 1 Replies | 7343 Views | Created by nanung - Sunday, February 27, 2011 4:36 AM | Last reply by nanung - Wednesday, March 2, 2011 8:01 AM -
0 VotesLinq V/S Sql Syntax
Hi All, I have basic question about Linq Syntax and Sql example Linq Syntax: var vResult = from s in ... -
0 VotesBrowser snifffing using Blackberry
Am facing an issue regarding downloading a Blackberry app file(JAD/COD file) through OTA(over internet).The problem scenario is like below. While ...Unanswered | 0 Replies | 6139 Views | Created by Saipriyadarshini - Wednesday, February 23, 2011 9:35 AM -
0 VotesLINQ + Webservice
Hello, I have a problem, I created a Webservice with LINQ to SQL but is giving error, someone could tell me what's wrong? My ... - Items 1 to 20 of 77 Next ›
LINQ to SQL (Pre-Release) announcement
-
Link
Performance
- Query plans are reused more often by specifically defining text parameter lengths
- Identity cache lookups for primary key with single result now includes query.Where(predicate).Single()/SingleOrDefault/First/FirstOrDefault
- Reduced query execution overhead when DataLoadOptions specified (cache lookup considers DataLoadOptions value equivalency – post beta 1)
Usability
- ITable<T> interface for additional mocking possibilities
- Contains with enums automatically casts to int or string depending on column type
- Associations can now specify non-primary-key columns on the other end of the association
- Support list initialization syntax for queries
- LinqDataSource now supports inherited entities
- LinqDataSource support for Dynamic Data query extenders added
Query stability
- Contains now detects self-referencing IQueryable and doesn't cause a stack overflow
- Skip(0) no longer prevents eager loading
- GetCommand operates within SQL Compact transactions
- Exposing Link<T> on a property/field is detected and reported correctly
- Compiled queries now correctly detect a change in mapping source and throw
- String.StartsWith, EndsWith and Contains now correctly handles ~ in the search string
- Now detects multiple active result sets (MARS) better
- Associations are properly created between entities when using eager loading with Table-Valued Functions (TVFs)
- Queries that contain sub-queries with scalar projections now work better
Update stability
- SubmitChanges no longer silently consumes transaction rollback exceptions
- SubmitChanges deals with timestamps in a change conflict scenario properly
- IsDbGenerated now honors renamed properties that don't match underlying column name
- Server-generated columns and SQL replication/triggers now work instead of throwing SQL exception
General stability
- Binary types equate correctly after deserialization
- EntitySet.ListChanged fired when adding items to an unloaded entity set
- Dispose our connections upon context disposal (ones passed in are untouched)
SQL Metal
- Foreign key property setter now checks all affected associations not just the first
- Improved error handling when primary key type not supported
- Now skips stored procedures containing table-valued parameters instead of aborting process
- Can now be used against connections that use AttachDbFilename syntax
- No longer crashes when unexpected data types are encountered
LINQ to SQL class designer
- Now handles a single anonymously named column in SQL result set
- Improved error message for associations to nullable unique columns
- No longer fails when using clauses are added to the partial user class
- VarChar(1) now correctly maps to string and not char
- Decimal precision and scale are now emitted correctly in the DbType attributes for stored procedures
- Foreign key changes will be picked up when bringing tables back into the designer without a restart
Code generation (SQL Metal + LINQ to SQL class designer)
- Stored procedures using original values now compiles when the entity and context namespaces differ
- Virtual internal now generates correct syntax
- Mapping attributes are now fully qualified to prevent conflicts with user types
- KnownTypeAttributes are now emitted for DataContractSerializer with inheritance
- Delay-loaded foreign keys now have the correct, compilable, code generated
- Using stored procedures with concurrency no longer gets confused if entities in different namespace to context
- ForeignKeyReferenceAlreadyHasValueException is now thrown if any association is loaded not just the first
