File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
src/JsonApiDotNetCore/Models Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
21using Newtonsoft . Json ;
32
43namespace JsonApiDotNetCore . Models
54{
6- public class Document
5+ public class Document : DocumentBase
76 {
87 [ JsonProperty ( "data" ) ]
98 public DocumentData Data { get ; set ; }
10-
11- [ JsonProperty ( "included" ) ]
12- public List < DocumentData > Included { get ; set ; }
139 }
1410}
Original file line number Diff line number Diff line change 1+ using System . Collections . Generic ;
2+ using Newtonsoft . Json ;
3+
4+ namespace JsonApiDotNetCore . Models
5+ {
6+ public class DocumentBase
7+ {
8+ [ JsonProperty ( "included" ) ]
9+ public List < DocumentData > Included { get ; set ; }
10+ }
11+ }
Original file line number Diff line number Diff line change 33
44namespace JsonApiDotNetCore . Models
55{
6- public class Documents
6+ public class Documents : DocumentBase
77 {
88 [ JsonProperty ( "data" ) ]
99 public List < DocumentData > Data { get ; set ; }
10-
11- [ JsonProperty ( "included" ) ]
12- public List < DocumentData > Included { get ; set ; }
1310 }
1411}
You can’t perform that action at this time.
0 commit comments