aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs
diff options
context:
space:
mode:
authorlbsa712008-01-16 12:25:13 +0000
committerlbsa712008-01-16 12:25:13 +0000
commit5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616 (patch)
tree96b3f4b939bd0c4a6e8b457f3e604ba143970c00 /ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs
parent* Fix for: http://opensimulator.org/mantis/view.php?id=358 (diff)
downloadopensim-SC_OLD-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.zip
opensim-SC_OLD-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.gz
opensim-SC_OLD-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.bz2
opensim-SC_OLD-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.xz
* More work on getting the database framework to actually work
Diffstat (limited to 'ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs')
-rw-r--r--ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs
index e4fe0fd..e4ea055 100644
--- a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs
+++ b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseTableMapper.cs
@@ -62,8 +62,8 @@ namespace TribalMedia.Framework.Data
62 get { return m_tableName; } 62 get { return m_tableName; }
63 } 63 }
64 64
65 protected Schema m_schema; 65 protected BaseSchema m_schema;
66 public Schema Schema 66 public BaseSchema Schema
67 { 67 {
68 get { return m_schema; } 68 get { return m_schema; }
69 } 69 }
@@ -110,9 +110,9 @@ namespace TribalMedia.Framework.Data
110 return m_database.ConvertToDbType(value); 110 return m_database.ConvertToDbType(value);
111 } 111 }
112 112
113 protected virtual DataReader CreateReader(IDataReader reader) 113 protected virtual BaseDataReader CreateReader(IDataReader reader)
114 { 114 {
115 return new DataReader(reader); 115 return m_database.CreateReader(reader);
116 } 116 }
117 } 117 }
118 118
@@ -138,7 +138,7 @@ namespace TribalMedia.Framework.Data
138 { 138 {
139 if (reader.Read()) 139 if (reader.Read())
140 { 140 {
141 result = FromReader(CreateReader(reader)); 141 result = FromReader( CreateReader(reader));
142 success = true; 142 success = true;
143 } 143 }
144 else 144 else
@@ -240,6 +240,6 @@ namespace TribalMedia.Framework.Data
240 } 240 }
241 } 241 }
242 242
243 public abstract TRowMapper FromReader(DataReader reader); 243 public abstract TRowMapper FromReader(BaseDataReader reader);
244 } 244 }
245} \ No newline at end of file 245} \ No newline at end of file