Exemplo n.º 1
0
        public BaseRequestHandler()
        {
            ConnectionStringSettingsCollection connStrings = WebConfigurationManager.ConnectionStrings;
            ConnectionStringSettings cs = connStrings[WebConfigurationManager.AppSettings["CurrentDBProvider"]];

            if (cs.ProviderName == "System.Data.SqlClient")
            {
                connection = new System.Data.SqlClient.SqlConnection(cs.ConnectionString);
                dataProvider = new SqlDataProvider();
            }

            connection.Open();
        }
 public DBMachineToPrivCollection(DataProvider prov)
     : base(prov)
 {
 }
Exemplo n.º 3
0
 public DBBaseObject(DataProvider dataProv)
 {
     dataProvider = dataProv;
 }