blob: f7fd4c84b5729824294be2b7c0887456a042ad22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using System;
using System.Collections.Generic;
using OpenSim.Framework;
using OpenSim.Framework.Data;
using OpenSim.Framework.Data.Base;
using OpenSim.Framework.Data.MySQLMapper;
namespace OpenSim.Framework.Data.MapperFactory
{
public class DataMapperFactory
{
public enum MAPPER_TYPE {
MYSQL,
};
public DataMapperFactory() {
}
static public BaseDatabaseConnector GetDataBaseMapper(MAPPER_TYPE type, string connectionString)
{
switch (type) {
case MAPPER_TYPE.MYSQL:
return new MySQLDatabaseMapper(connectionString);
default:
return null;
}
}
}
}
|