File tree 4 files changed +31
-6
lines changed
4 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace RomanticWeb . Mapping . Attributes
5
5
{
6
+ /// <summary>
7
+ /// Base class for mapping an RDF predicate
8
+ /// </summary>
6
9
public abstract class PredicateMappingAttribute : TermMappingAttribute
7
10
{
11
+ /// <summary>
12
+ /// Initializes a new instance of the <see cref="PredicateMappingAttribute"/> class.
13
+ /// </summary>
14
+ /// <param name="prefix">The term prefix.</param>
15
+ /// <param name="term">The term name.</param>
8
16
protected PredicateMappingAttribute ( string prefix , string term )
9
17
: base ( prefix , term )
10
18
{
11
19
}
12
20
21
+ /// <summary>
22
+ /// Initializes a new instance of the <see cref="PredicateMappingAttribute"/> class.
23
+ /// </summary>
24
+ /// <param name="termUri">The term URI.</param>
13
25
protected PredicateMappingAttribute ( string termUri )
14
26
: base ( termUri )
15
27
{
Original file line number Diff line number Diff line change @@ -32,9 +32,7 @@ public ITermPart<IDictionaryMap> Term
32
32
}
33
33
}
34
34
35
- /// <summary>
36
- /// Gets the dictionary key predicate map part
37
- /// </summary>
35
+ /// <inheritdoc />
38
36
public ITermPart < IDictionaryMap > KeyPredicate
39
37
{
40
38
get
@@ -43,9 +41,7 @@ public ITermPart<IDictionaryMap> KeyPredicate
43
41
}
44
42
}
45
43
46
- /// <summary>
47
- /// Gets the dictionary value predicate map part
48
- /// </summary>
44
+ /// <inheritdoc />
49
45
public ITermPart < IDictionaryMap > ValuePredicate
50
46
{
51
47
get
@@ -54,12 +50,14 @@ public ITermPart<IDictionaryMap> ValuePredicate
54
50
}
55
51
}
56
52
53
+ /// <inheritdoc />
57
54
public IDictionaryMap ConvertKeysWith < TConverter > ( ) where TConverter : INodeConverter
58
55
{
59
56
_keyMap . ConverterType = typeof ( TConverter ) ;
60
57
return this ;
61
58
}
62
59
60
+ /// <inheritdoc />
63
61
public IDictionaryMap ConvertValuesWith < TConverter > ( ) where TConverter : INodeConverter
64
62
{
65
63
_valueMap . ConverterType = typeof ( TConverter ) ;
@@ -77,6 +75,9 @@ public override IPropertyMappingProvider Accept(IFluentMapsVisitor fluentMapsVis
77
75
/// </summary>
78
76
public class ValueMap : TermMap
79
77
{
78
+ /// <summary>
79
+ /// Gets or sets the type of the converter.
80
+ /// </summary>
80
81
public Type ConverterType { [ return : AllowNull ] get ; set ; }
81
82
82
83
/// <summary>
@@ -93,6 +94,9 @@ public IPredicateMappingProvider Accept(IFluentMapsVisitor fluentMapsVisitor)
93
94
/// </summary>
94
95
public class KeyMap : TermMap
95
96
{
97
+ /// <summary>
98
+ /// Gets or sets the type of the converter.
99
+ /// </summary>
96
100
public Type ConverterType { [ return : AllowNull ] get ; set ; }
97
101
98
102
/// <summary>
Original file line number Diff line number Diff line change @@ -20,8 +20,14 @@ public interface IDictionaryMap
20
20
/// </summary>
21
21
ITermPart < IDictionaryMap > ValuePredicate { get ; }
22
22
23
+ /// <summary>
24
+ /// Sets the converter type for dictionary keys
25
+ /// </summary>
23
26
IDictionaryMap ConvertKeysWith < TConverter > ( ) where TConverter : INodeConverter ;
24
27
28
+ /// <summary>
29
+ /// Sets the converter type for dictionary values
30
+ /// </summary>
25
31
IDictionaryMap ConvertValuesWith < TConverter > ( ) where TConverter : INodeConverter ;
26
32
}
27
33
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace RomanticWeb . Mapping . Providers
4
4
{
5
+ /// <summary>
6
+ /// A mapping provider, which provides a predicate mapping
7
+ /// </summary>
5
8
public interface IPredicateMappingProvider : ITermMappingProvider
6
9
{
7
10
/// <summary> Gets or sets the type of the converter.</summary>
You can’t perform that action at this time.
0 commit comments