44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using EgwProxy.DataLayer.DbModel;
|
|
using MySql.Data.EntityFramework;
|
|
using NLog;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Entity;
|
|
using System.Data.Entity.Infrastructure;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EgwProxy.DataLayer
|
|
{
|
|
|
|
[DbConfigurationType(typeof(MySqlEFConfiguration))]
|
|
public partial class DatabaseContext : DbContext
|
|
{
|
|
#region Public Constructors
|
|
|
|
public DatabaseContext(string currConnString) : base(currConnString)
|
|
{
|
|
connString = currConnString;
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Properties
|
|
|
|
public virtual DbSet<LogMachineModel> DbSetLogMac { get; set; }
|
|
|
|
public DbSet<ProdModel> DbSetProd { get; set; }
|
|
public DbSet<ProjModel> DbSetProj { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Fields
|
|
|
|
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
|
|
private string connString = "";
|
|
|
|
#endregion Private Fields
|
|
}
|
|
} |