File tree 2 files changed +4
-2
lines changed
src/Examples/NoEntityFrameworkExample/Models
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System . ComponentModel . DataAnnotations . Schema ;
2
2
using JetBrains . Annotations ;
3
+ using JsonApiDotNetCore . Controllers ;
3
4
using JsonApiDotNetCore . Resources ;
4
5
using JsonApiDotNetCore . Resources . Annotations ;
5
6
6
7
namespace NoEntityFrameworkExample . Models ;
7
8
8
9
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
9
- [ Resource ]
10
+ [ Resource ( GenerateControllerEndpoints = JsonApiEndpoints . Query ) ]
10
11
public sealed class Person : Identifiable < long >
11
12
{
12
13
[ Attr ]
Original file line number Diff line number Diff line change 1
1
using System . ComponentModel . DataAnnotations ;
2
2
using JetBrains . Annotations ;
3
+ using JsonApiDotNetCore . Controllers ;
3
4
using JsonApiDotNetCore . Resources ;
4
5
using JsonApiDotNetCore . Resources . Annotations ;
5
6
6
7
namespace NoEntityFrameworkExample . Models ;
7
8
8
9
[ UsedImplicitly ( ImplicitUseTargetFlags . Members ) ]
9
- [ Resource ]
10
+ [ Resource ( GenerateControllerEndpoints = JsonApiEndpoints . Query ) ]
10
11
public sealed class Tag : Identifiable < long >
11
12
{
12
13
[ Attr ]
You can’t perform that action at this time.
0 commit comments