FransBouma / LinqToSQL2

Official Linq to SQL fork. A complete ORM which is backwards compatible with Linq to SQL but with new features.
Other
57 stars 22 forks source link

Optimize Context startup with Compatibility mode #12

Closed FransBouma closed 9 years ago

FransBouma commented 9 years ago

At the moment when a new context is created and the first query is executed, it will perform 3 open/close operations on a connection before it will execute the real query. This is for determining the db version, but it's not needed as the user should be able to configure whether the datasource is sqlserver or ce or another db type (e.g. a compatibility mode).

CE is phased out anyway, so this is something that hurts every user but for no real gain.

FransBouma commented 9 years ago

CE is kept as is for now (No CE 40 support).