diff options
author | lbsa71 | 2008-01-15 20:07:02 +0000 |
---|---|---|
committer | lbsa71 | 2008-01-15 20:07:02 +0000 |
commit | f5103b98be60cc8b1a69288328cdc20f78857835 (patch) | |
tree | b50381385478f57a05ed9fef7c5176397d76d2f2 /ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs | |
parent | * Added some comments to the linkset positioning code (diff) | |
download | opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.zip opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.gz opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.bz2 opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.xz |
* Renamed a bunch of Data baseclasses for clarity and readability
(Slowly getting there)
Diffstat (limited to '')
-rw-r--r-- | ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs (renamed from ThirdParty/TribalMedia/TribalMedia.Framework.Data/Schema.cs) | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/Schema.cs b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs index c6bf5d0..fc59f3b 100644 --- a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/Schema.cs +++ b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs | |||
@@ -31,24 +31,25 @@ namespace TribalMedia.Framework.Data | |||
31 | { | 31 | { |
32 | public class Schema | 32 | public class Schema |
33 | { | 33 | { |
34 | protected TableMapper m_tableMapper; | 34 | protected BaseTableMapper m_tableMapper; |
35 | protected Dictionary<string, FieldMapper> m_mappings; | 35 | protected Dictionary<string, BaseFieldMapper> m_mappings; |
36 | 36 | ||
37 | public Dictionary<string, FieldMapper> Fields | 37 | public Dictionary<string, BaseFieldMapper> Fields |
38 | { | 38 | { |
39 | get { return m_mappings; } | 39 | get { return m_mappings; } |
40 | } | 40 | } |
41 | 41 | ||
42 | public Schema(TableMapper tableMapper) | 42 | public Schema(BaseTableMapper tableMapper) |
43 | { | 43 | { |
44 | m_mappings = new Dictionary<string, FieldMapper>(); | 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 ObjectSchema<TObj> : Schema |
50 | { | 50 | { |
51 | public ObjectSchema(TableMapper tableMapper) : base(tableMapper) | 51 | public ObjectSchema(BaseTableMapper tableMapper) |
52 | : base(tableMapper) | ||
52 | { | 53 | { |
53 | } | 54 | } |
54 | 55 | ||
@@ -65,25 +66,25 @@ namespace TribalMedia.Framework.Data | |||
65 | } | 66 | } |
66 | } | 67 | } |
67 | 68 | ||
68 | public class RowMapperSchema<TRowMapper> : Schema | 69 | //public class RowMapperSchema<TRowMapper> : Schema |
69 | where TRowMapper : RowMapper | 70 | // where TRowMapper : RowMapper |
70 | { | 71 | //{ |
71 | public RowMapperSchema(TableMapper tableMapper) : base(tableMapper) | 72 | // public RowMapperSchema(TableMapper tableMapper) : base(tableMapper) |
72 | { | 73 | // { |
73 | } | 74 | // } |
74 | 75 | ||
75 | public RowMapperField<TRowMapper, TField> AddMapping<TField>(string fieldName, | 76 | // public RowMapperField<TRowMapper, TField> AddMapping<TField>(string fieldName, |
76 | RowMapperGetAccessor<TRowMapper, TField> | 77 | // RowMapperGetAccessor<TRowMapper, TField> |
77 | rowMapperGetAccessor, | 78 | // rowMapperGetAccessor, |
78 | RowMapperSetAccessor<TRowMapper, TField> | 79 | // RowMapperSetAccessor<TRowMapper, TField> |
79 | rowMapperSetAccessor) | 80 | // rowMapperSetAccessor) |
80 | { | 81 | // { |
81 | RowMapperField<TRowMapper, TField> rowMapperField = | 82 | // RowMapperField<TRowMapper, TField> rowMapperField = |
82 | new RowMapperField<TRowMapper, TField>(m_tableMapper, fieldName, rowMapperGetAccessor, rowMapperSetAccessor); | 83 | // new RowMapperField<TRowMapper, TField>(m_tableMapper, fieldName, rowMapperGetAccessor, rowMapperSetAccessor); |
83 | 84 | ||
84 | m_mappings.Add(fieldName, rowMapperField); | 85 | // m_mappings.Add(fieldName, rowMapperField); |
85 | 86 | ||
86 | return rowMapperField; | 87 | // return rowMapperField; |
87 | } | 88 | // } |
88 | } | 89 | //} |
89 | } \ No newline at end of file | 90 | } \ No newline at end of file |