diff options
Diffstat (limited to 'ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs')
-rw-r--r-- | ThirdParty/TribalMedia/TribalMedia.Framework.Data/ObjectTableMapper.cs | 9 |
1 files changed, 4 insertions, 5 deletions
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 | |||
32 | { | 32 | { |
33 | public abstract class ObjectTableMapper<TRowMapper, TPrimaryKey> : TableMapper | 33 | public abstract class ObjectTableMapper<TRowMapper, TPrimaryKey> : TableMapper |
34 | { | 34 | { |
35 | public ObjectTableMapper(DatabaseMapper connectionPool, string tableName) | 35 | public ObjectTableMapper(DatabaseMapper database, string tableName) |
36 | : base(connectionPool, tableName) | 36 | : base(database, tableName) |
37 | { | 37 | { |
38 | } | 38 | } |
39 | 39 | ||
@@ -52,7 +52,7 @@ namespace TribalMedia.Framework.Data | |||
52 | { | 52 | { |
53 | if (reader.Read()) | 53 | if (reader.Read()) |
54 | { | 54 | { |
55 | result = FromReader(new DataReader(reader)); | 55 | result = FromReader( CreateReader(reader)); |
56 | success = true; | 56 | success = true; |
57 | } | 57 | } |
58 | else | 58 | else |
@@ -67,8 +67,7 @@ namespace TribalMedia.Framework.Data | |||
67 | 67 | ||
68 | return success; | 68 | return success; |
69 | } | 69 | } |
70 | 70 | ||
71 | |||
72 | public virtual bool Remove(TPrimaryKey id) | 71 | public virtual bool Remove(TPrimaryKey id) |
73 | { | 72 | { |
74 | int deleted = 0; | 73 | int deleted = 0; |