diff options
author | Jeff Ames | 2008-03-29 04:25:52 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-29 04:25:52 +0000 |
commit | bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1 (patch) | |
tree | 96af0354a4f9afc1719df66ca49cd77296472d60 /OpenSim/Framework/Data.MapperFactory | |
parent | * Refactored out common http handler operations (diff) | |
download | opensim-SC_OLD-bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1.zip opensim-SC_OLD-bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1.tar.gz opensim-SC_OLD-bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1.tar.bz2 opensim-SC_OLD-bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1.tar.xz |
Set svn:eol-style.
Diffstat (limited to 'OpenSim/Framework/Data.MapperFactory')
-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 | } |