aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Base/BaseSchema.cs
diff options
context:
space:
mode:
authorJeff Ames2008-06-26 20:20:30 +0000
committerJeff Ames2008-06-26 20:20:30 +0000
commitd96caaa14e9e869e85eecc6b760221ad0579f68e (patch)
treeccb720f2b7df128d9db0285c58ee6cc63a291ba8 /OpenSim/Data/Base/BaseSchema.cs
parentApply patch from bug #1605 -- Documentation for Data/SQLite. Thanks kerunix_... (diff)
downloadopensim-SC_OLD-d96caaa14e9e869e85eecc6b760221ad0579f68e.zip
opensim-SC_OLD-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.gz
opensim-SC_OLD-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.bz2
opensim-SC_OLD-d96caaa14e9e869e85eecc6b760221ad0579f68e.tar.xz
Apply patch from bug #1606 -- Documentation for Data/Null, Data/Base. Thanks kerunix_Flan!
Diffstat (limited to 'OpenSim/Data/Base/BaseSchema.cs')
-rw-r--r--OpenSim/Data/Base/BaseSchema.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Data/Base/BaseSchema.cs b/OpenSim/Data/Base/BaseSchema.cs
index 656433f..9d69a40 100644
--- a/OpenSim/Data/Base/BaseSchema.cs
+++ b/OpenSim/Data/Base/BaseSchema.cs
@@ -29,16 +29,26 @@ using System.Collections.Generic;
29 29
30namespace OpenSim.Data.Base 30namespace OpenSim.Data.Base
31{ 31{
32 /// <summary>
33 ///
34 /// </summary>
32 public class BaseSchema 35 public class BaseSchema
33 { 36 {
34 protected BaseTableMapper m_tableMapper; 37 protected BaseTableMapper m_tableMapper;
35 protected Dictionary<string, BaseFieldMapper> m_mappings; 38 protected Dictionary<string, BaseFieldMapper> m_mappings;
36 39
40 /// <summary>
41 ///
42 /// </summary>
37 public Dictionary<string, BaseFieldMapper> Fields 43 public Dictionary<string, BaseFieldMapper> Fields
38 { 44 {
39 get { return m_mappings; } 45 get { return m_mappings; }
40 } 46 }
41 47
48 /// <summary>
49 ///
50 /// </summary>
51 /// <param name="tableMapper"></param>
42 public BaseSchema(BaseTableMapper tableMapper) 52 public BaseSchema(BaseTableMapper tableMapper)
43 { 53 {
44 m_mappings = new Dictionary<string, BaseFieldMapper>(); 54 m_mappings = new Dictionary<string, BaseFieldMapper>();
@@ -46,13 +56,29 @@ namespace OpenSim.Data.Base
46 } 56 }
47 } 57 }
48 58
59 /// <summary>
60 ///
61 /// </summary>
62 /// <typeparam name="TObj"></typeparam>
49 public class BaseSchema<TObj> : BaseSchema 63 public class BaseSchema<TObj> : BaseSchema
50 { 64 {
65 /// <summary>
66 ///
67 /// </summary>
68 /// <param name="tableMapper"></param>
51 public BaseSchema(BaseTableMapper tableMapper) 69 public BaseSchema(BaseTableMapper tableMapper)
52 : base(tableMapper) 70 : base(tableMapper)
53 { 71 {
54 } 72 }
55 73
74 /// <summary>
75 ///
76 /// </summary>
77 /// <typeparam name="TField"></typeparam>
78 /// <param name="fieldName"></param>
79 /// <param name="rowMapperGetAccessor"></param>
80 /// <param name="rowMapperSetAccessor"></param>
81 /// <returns></returns>
56 public ObjectField<TObj, TField> AddMapping<TField>(string fieldName, 82 public ObjectField<TObj, TField> AddMapping<TField>(string fieldName,
57 ObjectGetAccessor<TObj, TField> rowMapperGetAccessor, 83 ObjectGetAccessor<TObj, TField> rowMapperGetAccessor,
58 ObjectSetAccessor<TObj, TField> rowMapperSetAccessor) 84 ObjectSetAccessor<TObj, TField> rowMapperSetAccessor)