-
Notifications
You must be signed in to change notification settings - Fork 5
/
OAuth2ServerDbContext.cs
50 lines (45 loc) · 1.31 KB
/
OAuth2ServerDbContext.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace OAuth2Server.Models
{
using System.Data.Entity;
/// <summary>
/// The database context for our OAuth 2 server.
/// </summary>
public class OAuth2ServerDbContext : DbContext
{
/// <summary>
/// Gets or sets the users.
/// </summary>
/// <value>
/// The users.
/// </value>
public DbSet<User> Users { get; set; }
/// <summary>
/// Gets or sets the clients.
/// </summary>
/// <value>
/// The clients.
/// </value>
public DbSet<Client> Clients { get; set; }
/// <summary>
/// Gets or sets the authorizations, which is basically the link between clients and users.
/// </summary>
/// <value>
/// The authorizations.
/// </value>
public DbSet<Authorization> Authorizations { get; set; }
/// <summary>
/// Gets or sets the nonces.
/// </summary>
/// <value>
/// The nonces.
/// </value>
public DbSet<Nonce> Nonces { get; set; }
/// <summary>
/// Gets or sets the symmetric crypto keys.
/// </summary>
/// <value>
/// The symmetric crypto keys.
/// </value>
public DbSet<SymmetricCryptoKey> SymmetricCryptoKeys { get; set; }
}
}