public ExSchemaEngine GetSchemaEngine(DbConnection dbConnection)
{
switch (DatabaseProvider)
{
case DatabaseProvider.SQLServer:
return new SQLSchemaEngine(dbConnection);
case DatabaseProvider.Oracle:
return new OracleSchemaEngine(dbConnection);
case DatabaseProvider.SQLite:
return new SQLiteSchemaEngine(dbConnection);
case DatabaseProvider.SqlCe4:
return new SQLCeSchemaEngine(dbConnection);
default:
throw new NotSupportedException("Database type is not supported");
}
}