public static DataAccessProvider Instance() { if (objProvider != null) { return(objProvider); } DataAccessProviderConfiguration objConfig = DataAccessProviderConfiguration.GetDataAccessProviderConfiguration(); objProvider = (DataAccessProvider)DataAccessProviderFactory.CreateDataAccess((Provider)objConfig.Providers[objConfig.DefaultProvider]); return(objProvider); }
public static DataAccessProvider CreateDataAccess() { DataAccessProviderConfiguration objConfig = DataAccessProviderConfiguration.GetDataAccessProviderConfiguration(); return(CreateDataAccess(objConfig)); }