diff options
Diffstat (limited to 'OpenSim/Framework/Data.MapperFactory')
-rw-r--r-- | OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs b/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs deleted file mode 100644 index 8995b9e..0000000 --- a/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | using System; | ||
2 | using OpenSim.Framework.Data.Base; | ||
3 | using OpenSim.Framework.Data.MSSQLMapper; | ||
4 | using OpenSim.Framework.Data.MySQLMapper; | ||
5 | |||
6 | namespace OpenSim.Framework.Data.MapperFactory | ||
7 | { | ||
8 | public class DataMapperFactory | ||
9 | { | ||
10 | public enum MAPPER_TYPE { | ||
11 | MySQL, | ||
12 | MSSQL, | ||
13 | }; | ||
14 | |||
15 | static public BaseDatabaseConnector GetDataBaseMapper(MAPPER_TYPE type, string connectionString) | ||
16 | { | ||
17 | switch (type) { | ||
18 | case MAPPER_TYPE.MySQL: | ||
19 | return new MySQLDatabaseMapper(connectionString); | ||
20 | case MAPPER_TYPE.MSSQL: | ||
21 | return new MSSQLDatabaseMapper(connectionString); | ||
22 | default: | ||
23 | throw new ArgumentException("Unknown Database Mapper type [" + type + "]."); | ||
24 | } | ||
25 | } | ||
26 | } | ||
27 | } | ||