diff options
author | lbsa71 | 2008-01-16 12:25:13 +0000 |
---|---|---|
committer | lbsa71 | 2008-01-16 12:25:13 +0000 |
commit | 5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616 (patch) | |
tree | 96b3f4b939bd0c4a6e8b457f3e604ba143970c00 /ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs | |
parent | * Fix for: http://opensimulator.org/mantis/view.php?id=358 (diff) | |
download | opensim-SC-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.zip opensim-SC-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.gz opensim-SC-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.bz2 opensim-SC-5e757d2ad1ae3ad158a9b5f6077abcfaf9fac616.tar.xz |
* More work on getting the database framework to actually work
Diffstat (limited to '')
-rw-r--r-- | ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseSchema.cs | 30 |
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 | ||
30 | namespace TribalMedia.Framework.Data | 30 | namespace 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 |