@@ -21,7 +21,7 @@ public class ContentFieldsProvider : IContentFieldProvider
21
21
Description = "Boolean field" ,
22
22
FieldType = typeof ( BooleanGraphType ) ,
23
23
UnderlyingType = typeof ( BooleanField ) ,
24
- FieldAccessor = field => field . Content . Value ,
24
+ FieldAccessor = field => ( ( BooleanField ) field ) . Value ,
25
25
}
26
26
} ,
27
27
{
@@ -31,7 +31,7 @@ public class ContentFieldsProvider : IContentFieldProvider
31
31
Description = "Date field" ,
32
32
FieldType = typeof ( DateGraphType ) ,
33
33
UnderlyingType = typeof ( DateField ) ,
34
- FieldAccessor = field => field . Content . Value ,
34
+ FieldAccessor = field => ( ( DateField ) field ) . Value ,
35
35
}
36
36
} ,
37
37
{
@@ -41,7 +41,7 @@ public class ContentFieldsProvider : IContentFieldProvider
41
41
Description = "Date & time field" ,
42
42
FieldType = typeof ( DateTimeGraphType ) ,
43
43
UnderlyingType = typeof ( DateTimeField ) ,
44
- FieldAccessor = field => field . Content . Value ,
44
+ FieldAccessor = field => ( ( DateTimeField ) field ) . Value ,
45
45
}
46
46
} ,
47
47
{
@@ -51,7 +51,7 @@ public class ContentFieldsProvider : IContentFieldProvider
51
51
Description = "Numeric field" ,
52
52
FieldType = typeof ( DecimalGraphType ) ,
53
53
UnderlyingType = typeof ( NumericField ) ,
54
- FieldAccessor = field => field . Content . Value ,
54
+ FieldAccessor = field => ( ( NumericField ) field ) . Value ,
55
55
}
56
56
} ,
57
57
{
@@ -61,7 +61,7 @@ public class ContentFieldsProvider : IContentFieldProvider
61
61
Description = "Text field" ,
62
62
FieldType = typeof ( StringGraphType ) ,
63
63
UnderlyingType = typeof ( TextField ) ,
64
- FieldAccessor = field => field . Content . Text ,
64
+ FieldAccessor = field => ( ( TextField ) field ) . Text ,
65
65
}
66
66
} ,
67
67
{
@@ -71,7 +71,7 @@ public class ContentFieldsProvider : IContentFieldProvider
71
71
Description = "Time field" ,
72
72
FieldType = typeof ( TimeSpanGraphType ) ,
73
73
UnderlyingType = typeof ( TimeField ) ,
74
- FieldAccessor = field => field . Content . Value ,
74
+ FieldAccessor = field => ( ( TimeField ) field ) . Value ,
75
75
}
76
76
} ,
77
77
{
@@ -81,7 +81,7 @@ public class ContentFieldsProvider : IContentFieldProvider
81
81
Description = "Multi text field" ,
82
82
FieldType = typeof ( ListGraphType < StringGraphType > ) ,
83
83
UnderlyingType = typeof ( MultiTextField ) ,
84
- FieldAccessor = field => field . Content . Values ,
84
+ FieldAccessor = field => ( ( MultiTextField ) field ) . Values ,
85
85
}
86
86
}
87
87
} ;
0 commit comments