a2171e643d
- FTP - Gomba - Icoel - MultiCcn - OSAI - SqlDB
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using EgwProxy.Icoel.DataLayer.DatabaseModels;
|
|
using NLog;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
using SqlProviderServices = System.Data.Entity.SqlServer.SqlProviderServices;
|
|
|
|
namespace EgwProxy.Icoel.DataLayer
|
|
{
|
|
/// <summary>
|
|
/// Classe per accesso dati Tacker ICOEL
|
|
/// </summary>
|
|
public partial class ExportDbContext : DbContext
|
|
{
|
|
private static NLog.Logger Log = LogManager.GetCurrentClassLogger();
|
|
|
|
/// <summary>
|
|
/// Costruttore implicito
|
|
/// </summary>
|
|
public ExportDbContext() : base("name=ExportIcoel")
|
|
{
|
|
Log.Info("Init 01 ExportDbContext - DONE");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Costruttore da connectionString
|
|
/// </summary>
|
|
/// <param name="connectionString"></param>
|
|
public ExportDbContext(string connectionString) : base(connectionString)
|
|
{
|
|
Log.Info("Init 02 ExportDbContext - DONE");
|
|
}
|
|
|
|
/// <summary>
|
|
/// DbSet dati prodotti
|
|
/// </summary>
|
|
public virtual DbSet<ProductsTotalsModel> DbSetProductsTotals { get; set; }
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|