Example #1
0
 public static IProvider CreateProvider(ProviderInfo dbProvider)
 {
     if (dbProvider.DbType == DBTypeDefined.Access)
     {
         var Provider = new OleDb.OleProvider(dbProvider.ConnString);
         return(Provider);
     }
     else
     {
         var Provider = new SqlDb.SqlProvider(dbProvider.ConnString);
         return(Provider);
     }
 }
Example #2
0
 public SqlTableAnalyze(SqlProvider provider)
 {
     this._Conn     = provider.Conn as SqlConnection;
     this._Provider = provider;
 }