* Refactored out circular reference in Region.Environment <-> Framework.Data.Base

We REALLY need to get the db layer sorted soon...
This commit is contained in:
lbsa71
2008-03-25 14:27:39 +00:00
parent e3ca113075
commit ba2de258f4
8 changed files with 52 additions and 42 deletions

View File

@@ -28,7 +28,6 @@
using System.Data;
using System.Data.Common;
using libsecondlife;
using MySql.Data.MySqlClient;
using OpenSim.Framework.Data.Base;
@@ -55,23 +54,4 @@ namespace OpenSim.Framework.Data
return new OpenSimDataReader(reader);
}
}
public class MySQLDatabaseMapper : OpenSimDatabaseConnector
{
public MySQLDatabaseMapper(string connectionString)
: base(connectionString)
{
}
public override DbConnection GetNewConnection()
{
MySqlConnection connection = new MySqlConnection(m_connectionString);
return connection;
}
public override string CreateParamName(string fieldName)
{
return "?" + fieldName;
}
}
}