api e token con ck in db
This commit is contained in:
1 parent
a172f05269
commit
2db9525570
18 files changed
+570
-161
No files matched your search
@@ -1,9 +1,21 @@
|
||||
namespace uWine.Core.Domain.Entities
|
||||
using MySqlConnector;
|
||||
|
||||
namespace uWine.Core.Domain.Entities
|
||||
{
|
||||
public class Role
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public static Role FromRecord(MySqlDataReader reader)
|
||||
{
|
||||
return new Role
|
||||
{
|
||||
Id = reader.GetInt32("role_id"),
|
||||
Name = reader.GetString("name"),
|
||||
Description = reader.GetString("description")
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user