예제 #1
0
        public void ConnectToSQLServerDatabase()
        {
            var connextionString = Configuration.DefaultConnectionString;
            var query = "SELECT TOP 5 * FROM [SCIPA].[dbo].[Values]";

            var dcm = new DatabaseConnectionManager(DatabaseType.SQL, connextionString, query, true);
            dcm.Execute();
        }
예제 #2
0
        public void ConnectToSQLServerDatabase()
        {
            var connextionString = @"provider=System.Data.SqlClient;provider connection string="data source=.;initial catalog=SCIPA;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework";
            var query = "SELECT TOP 5 * FROM [SCIPA].[dbo].[Values]";

            var dcm = new DatabaseConnectionManager(DatabaseType.SQL, Configuration.DefaultConnectionString,query,true);
            dcm.Execute();
        }