diff options
Diffstat (limited to 'OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs')
-rw-r--r-- | OpenSim/Framework/Data.MapperFactory/DataMapperFactory.cs | 52 |
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 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using OpenSim.Framework; | 3 | using OpenSim.Framework; |
4 | using OpenSim.Framework.Data; | 4 | using OpenSim.Framework.Data; |
5 | using OpenSim.Framework.Data.Base; | 5 | using OpenSim.Framework.Data.Base; |
6 | using OpenSim.Framework.Data.MySQLMapper; | 6 | using OpenSim.Framework.Data.MySQLMapper; |
7 | 7 | ||
8 | namespace OpenSim.Framework.Data.MapperFactory | 8 | namespace 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 | } |