mirror of
https://github.com/opensim/opensim.git
synced 2026-05-31 06:45:53 +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
24 lines
575 B
C#
24 lines
575 B
C#
using System.Data.Common;
|
|
using libsecondlife;
|
|
using TribalMedia.Framework.Data;
|
|
|
|
namespace OpenSim.Framework.Data
|
|
{
|
|
public abstract class OpenSimDatabaseMapper : DatabaseMapper
|
|
{
|
|
public OpenSimDatabaseMapper(string connectionString) : base(connectionString)
|
|
{
|
|
}
|
|
|
|
public override object ConvertToDbType(object value)
|
|
{
|
|
if (value is LLUUID)
|
|
{
|
|
return ((LLUUID) value).UUID.ToString();
|
|
}
|
|
|
|
return base.ConvertToDbType(value);
|
|
}
|
|
}
|
|
}
|