From 47c65295236560b0c58c1797ce2ad19418fa2b94 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Tue, 15 Jan 2008 10:15:39 +0000 Subject: * Some morw work on specializing the database framework for OpenSim --- .../TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs') diff --git a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs index 818c530..f2ee4f8 100644 --- a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs +++ b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs @@ -32,8 +32,8 @@ namespace TribalMedia.Framework.Data { public abstract class ObjectTableMapper : TableMapper { - public ObjectTableMapper(DatabaseMapper connectionPool, string tableName) - : base(connectionPool, tableName) + public ObjectTableMapper(DatabaseMapper database, string tableName) + : base(database, tableName) { } @@ -52,7 +52,7 @@ namespace TribalMedia.Framework.Data { if (reader.Read()) { - result = FromReader(new DataReader(reader)); + result = FromReader( CreateReader(reader)); success = true; } else @@ -67,8 +67,7 @@ namespace TribalMedia.Framework.Data return success; } - - + public virtual bool Remove(TPrimaryKey id) { int deleted = 0; -- cgit v1.1