aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs')
-rw-r--r--OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs52
1 files changed, 26 insertions, 26 deletions
diff --git a/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs b/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
index 27f467f..37b933c 100644
--- a/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
+++ b/OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs
@@ -1,26 +1,26 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using OpenSim.Framework; 3using OpenSim.Framework;
4using OpenSim.Framework.Data; 4using OpenSim.Framework.Data;
5using OpenSim.Framework.Data.Base; 5using OpenSim.Framework.Data.Base;
6using OpenSim.Framework.Data.MySQLMapper; 6using OpenSim.Framework.Data.MySQLMapper;
7 7
8namespace OpenSim.Framework.Data.MapperFactory 8namespace OpenSim.Framework.Data.MapperFactory
9{ 9{
10 public class DataMapperFactory 10 public class DataMapperFactory
11 { 11 {
12 public enum MAPPER_TYPE { 12 public enum MAPPER_TYPE {
13 MYSQL, 13 MYSQL,
14 }; 14 };
15 15
16 static public BaseDatabaseConnector GetDataBaseMapper(MAPPER_TYPE type, string connectionString) 16 static public BaseDatabaseConnector GetDataBaseMapper(MAPPER_TYPE type, string connectionString)
17 { 17 {
18 switch (type) { 18 switch (type) {
19 case MAPPER_TYPE.MYSQL: 19 case MAPPER_TYPE.MYSQL:
20 return new MySQLDatabaseMapper(connectionString); 20 return new MySQLDatabaseMapper(connectionString);
21 default: 21 default:
22 return null; 22 return null;
23 } 23 }
24 } 24 }
25 } 25 }
26} 26}