-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIdentityRole.cs
More file actions
43 lines (37 loc) · 1.21 KB
/
IdentityRole.cs
File metadata and controls
43 lines (37 loc) · 1.21 KB
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
#region License and copyright notice
/*
* ASP.NET Identity provider for Telerik Data Access
*
* Copyright (c) Fredrik Schultz and Contributors
*
* This source is subject to the Microsoft Public License.
* See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
* All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
*/
#endregion
namespace AspNet.Identity.DataAccess {
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Identity;
public class IdentityRole : IRole<Guid> {
public Guid Id { get; set; }
public string Name { get; set; }
public IList<IdentityUser> Users { get; set; }
public IdentityRole() {
Id = Guid.NewGuid();
Users = new List<IdentityUser>();
}
public IdentityRole(string name) : this() {
Name = name;
}
public IdentityRole(string name, Guid id) {
Id = id;
Name = name;
Users = new List<IdentityUser>();
}
}
}