42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Entity;
|
|
using System.Data.Entity.Migrations;
|
|
using MySql.Data.Entity;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using EgtBEAMWALL.DataLayer.DatabaseModels;
|
|
using EgtBEAMWALL.DataLayer.Migrations;
|
|
using System.ServiceProcess;
|
|
using System.IO;
|
|
using System.Data.Entity.Infrastructure;
|
|
|
|
namespace EgtBEAMWALL.DataLayer
|
|
{
|
|
[DbConfigurationType(typeof(MySqlEFConfiguration))]
|
|
//[DbConfigurationType(typeof(aMySqlConfiguration))]
|
|
public class AdminContext : DbContext
|
|
{
|
|
#region Public Constructors
|
|
|
|
[Obsolete("This constructor should never be used directly, and is only needed to generate entityframework stuff. Connection string can be adapted as pleased.")]
|
|
public AdminContext() : base("DefaultConnection")
|
|
{
|
|
}
|
|
|
|
public AdminContext(string connectionString) : base(connectionString)
|
|
{
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// User management
|
|
/// </summary>
|
|
public DbSet<UserPriv> UserList { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |