An implementation of the IManagingEnergyDataAdaptor interface which interacts with a Microsoft SQL database has been implemented in the API as ManagingEnergy.Data.MSSQL.SQLAdaptor.
Simply pass the database connection string to the constructor and a connection will be made.
// Create an instance of the MSSQL implementation of the IManagingEnergyDataAdaptor ManagingEnergy.Data.IManagingEnergyDataAdaptor sqlDataAdaptor = new ManagingEnergy.Data.MSSQL.SqlAdaptor("Data Source=sqlserver;Integrated Security=True;"); |