aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs30
1 files changed, 4 insertions, 26 deletions
diff --git a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs
index fc59f3b..a6740c2 100644
--- a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs
+++ b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs
@@ -29,7 +29,7 @@ using TribalMedia.Framework.Data;
29 29
30namespace TribalMedia.Framework.Data 30namespace TribalMedia.Framework.Data
31{ 31{
32 public class Schema 32 public class BaseSchema
33 { 33 {
34 protected BaseTableMapper m_tableMapper; 34 protected BaseTableMapper m_tableMapper;
35 protected Dictionary<string, BaseFieldMapper> m_mappings; 35 protected Dictionary<string, BaseFieldMapper> m_mappings;
@@ -39,16 +39,16 @@ namespace TribalMedia.Framework.Data
39 get { return m_mappings; } 39 get { return m_mappings; }
40 } 40 }
41 41
42 public Schema(BaseTableMapper tableMapper) 42 public BaseSchema(BaseTableMapper tableMapper)
43 { 43 {
44 m_mappings = new Dictionary<string, BaseFieldMapper>(); 44 m_mappings = new Dictionary<string, BaseFieldMapper>();
45 m_tableMapper = tableMapper; 45 m_tableMapper = tableMapper;
46 } 46 }
47 } 47 }
48 48
49 public class ObjectSchema<TObj> : Schema 49 public class BaseSchema<TObj> : BaseSchema
50 { 50 {
51 public ObjectSchema(BaseTableMapper tableMapper) 51 public BaseSchema(BaseTableMapper tableMapper)
52 : base(tableMapper) 52 : base(tableMapper)
53 { 53 {
54 } 54 }
@@ -65,26 +65,4 @@ namespace TribalMedia.Framework.Data
65 return rowMapperField; 65 return rowMapperField;
66 } 66 }
67 } 67 }
68
69 //public class RowMapperSchema<TRowMapper> : Schema
70 // where TRowMapper : RowMapper
71 //{
72 // public RowMapperSchema(TableMapper tableMapper) : base(tableMapper)
73 // {
74 // }
75
76 // public RowMapperField<TRowMapper, TField> AddMapping<TField>(string fieldName,
77 // RowMapperGetAccessor<TRowMapper, TField>
78 // rowMapperGetAccessor,
79 // RowMapperSetAccessor<TRowMapper, TField>
80 // rowMapperSetAccessor)
81 // {
82 // RowMapperField<TRowMapper, TField> rowMapperField =
83 // new RowMapperField<TRowMapper, TField>(m_tableMapper, fieldName, rowMapperGetAccessor, rowMapperSetAccessor);
84
85 // m_mappings.Add(fieldName, rowMapperField);
86
87 // return rowMapperField;
88 // }
89 //}
90} \ No newline at end of file 68} \ No newline at end of file