Beispiel #1
0
 private static SchemaProviderBase Instance(string classname)
 {
     try
     {
         Type type = Type.GetType(classname);
         provider = (SchemaProviderBase)Activator.CreateInstance(type, true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return provider;
 }
Beispiel #2
0
 private static SchemaProviderBase Instance(string classname)
 {
     try
     {
         Type type = Type.GetType(classname);
         provider = (SchemaProviderBase)Activator.CreateInstance(type, true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(provider);
 }
Beispiel #3
0
 public static SchemaProviderBase GetInstance()
 {
     if (provider == null)
     {
         try
         {
             string typename = AppSettingsHelper.GetString("SchemaProvider", "LCW.Framework.Common.DataAccess.Schema.Sql.SqlProvider");
             provider = Instance(typename);
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
     return provider;
 }
Beispiel #4
0
 public static SchemaProviderBase GetInstance()
 {
     if (provider == null)
     {
         try
         {
             string typename = AppSettingsHelper.GetString("SchemaProvider", "LCW.Framework.Common.DataAccess.Schema.Sql.SqlProvider");
             provider = Instance(typename);
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
     return(provider);
 }