Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Massive with Sql CE 4.0 - Provider Tweak #113

Merged
merged 1 commit into from over 2 years ago

2 participants

KennyBu Rob Conery
KennyBu

Tweaked the database provider code to use the provider as defined in connection string if one is available. This solved an issue when trying to use a Sql Compact Database 4.0 provider with Massive.

KennyBu Tweaked the database provider code to use the provider as defined in …
…the connection string if one is available. This solved an issue when trying to use a Sql Compact Database 4.0 provider with Massive.
ac6a513
Rob Conery robconery merged commit 2f48d1c into from
Rob Conery robconery closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 01, 2011
KennyBu Tweaked the database provider code to use the provider as defined in …
…the connection string if one is available. This solved an issue when trying to use a Sql Compact Database 4.0 provider with Massive.
ac6a513
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  Massive.cs
4  Massive.cs
@@ -119,6 +119,10 @@ public class DynamicModel : DynamicObject {
119 119
             PrimaryKeyField = string.IsNullOrEmpty(primaryKeyField) ? "ID" : primaryKeyField;
120 120
             DescriptorField = descriptorField;
121 121
             var _providerName = "System.Data.SqlClient";
  122
+            
  123
+            if(ConfigurationManager.ConnectionStrings[connectionStringName].ProviderName != null)
  124
+                _providerName = ConfigurationManager.ConnectionStrings[connectionStringName].ProviderName;
  125
+            
122 126
             _factory = DbProviderFactories.GetFactory(_providerName);
123 127
             ConnectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString;
124 128
         }
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.