Beispiel #1
0
        private static void Main(string[] args)
        {
            IDbProviderFactory dbProviderFactory = LoadDbProviderFactory();

            PrintHeader("Connection");
            var dbConnection = dbProviderFactory.CreateConnection();

            dbConnection.Open();
            dbConnection.Close();

            PrintHeader("Command");
            var dbCommand = dbProviderFactory.CreateCommand();

            dbCommand.Execute();

            Console.ReadKey();
        }
Beispiel #2
0
 private IDbCommand GetCommand()
 {
     return(_dbFactory.CreateCommand());
 }