Example #1
0
        public static IDbConnection GetIDBConnection
        (
            DBType databaseType,
            string connectionString
        )
        {
            ISCDatabase db = VSCDatabase.GetSCDatabase(databaseType, connectionString);

            return(db.GetDBConnection());
        }
Example #2
0
        public static IDbConnection GetIDBConnection
        (
            DBType databaseType,
            string serverName,
            string username,
            string password,
            string databaseName
        )
        {
            ISCDatabase db = VSCDatabase.GetSCDatabase(databaseType, serverName, username, password, databaseName);

            return(db.GetDBConnection());
        }