Files
cms_thermo_active/Step.Database/DatabaseContext.cs
T
CMS4390\marantalu 7a6e75ffd5 Added Bearer oAuth Authentication:
* Create User with roles
* Login
* Authorization without roles
2017-11-23 16:31:30 +01:00

25 lines
531 B
C#

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Step.Model;
using MySql.Data.Entity;
namespace Step.Database
{
[DbConfigurationType(typeof(MySqlEFConfiguration))]
public class DatabaseContext : DbContext
{
public DbSet<UserModel> Users { get; set; }
public DbSet<RoleModel> Roles { get; set; }
public DatabaseContext()
: base("databaseConnection")
{
}
}
}