mirror of
https://github.com/opensim/opensim.git
synced 2026-05-16 19:56:04 +08:00
* Added PrimitiveBaseShapeTableMapper to show how it's done NOTE: Nothing actually works yet - this code should be considered more of educational value until it's all wired together
25 lines
626 B
C#
25 lines
626 B
C#
using System.Data.Common;
|
|
using MySql.Data.MySqlClient;
|
|
|
|
namespace OpenSim.Framework.Data.MySQL
|
|
{
|
|
public class MySQLDatabaseMapper : OpenSimDatabaseMapper
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|