metodi configurazioni add
This commit is contained in:
parent
b1d5c6b547
commit
5f6984c108
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
22
ApiPolo/Models/BuoniLW.cs
Normal file
22
ApiPolo/Models/BuoniLW.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models
|
||||||
|
{
|
||||||
|
/// <summary>Buono per Lift web</summary>
|
||||||
|
public class BuoniLW
|
||||||
|
{
|
||||||
|
/// <summary>azienda</summary>
|
||||||
|
[Key]
|
||||||
|
public string? azienda { get; set; }
|
||||||
|
|
||||||
|
/// <summary>seriale buono</summary>
|
||||||
|
[Key]
|
||||||
|
public string? ser_buono { get; set; }
|
||||||
|
|
||||||
|
/// <summary>immagine</summary>
|
||||||
|
public string? immagine { get; set; }
|
||||||
|
|
||||||
|
/// <summary>data inserimento</summary>
|
||||||
|
public DateTime? dt_ins { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
24
ApiPolo/Models/CC_CIWiev.cs
Normal file
24
ApiPolo/Models/CC_CIWiev.cs
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models
|
||||||
|
{
|
||||||
|
/// <summary>Oggetto Vista abbinamento codice chiusura-codice intervento</summary>
|
||||||
|
[Keyless]
|
||||||
|
public class CC_CIWiev
|
||||||
|
{
|
||||||
|
/// <summary>Azienda</summary>
|
||||||
|
public string? picodazi { get; set; }
|
||||||
|
|
||||||
|
/// <summary>codice di chiusura PIASSCHIU</summary>
|
||||||
|
public string? picodchi { get; set; }
|
||||||
|
|
||||||
|
/// <summary>codice intervento PIASSCHIU</summary>
|
||||||
|
public string? picodint { get; set; }
|
||||||
|
|
||||||
|
/// <summary>codice intervento CODINTE</summary>
|
||||||
|
public string? cicodice { get; set; }
|
||||||
|
|
||||||
|
/// <summary>descrizione intervento CODINTE</summary>
|
||||||
|
public string? cidescri { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models.Discovery_dbcontext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public class DISCO_CC_CI_Vista_DbContext : DbContext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public DbSet<CC_CIWiev>? ccciWiev { get; set; }
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
public DISCO_CC_CI_Vista_DbContext(DbContextOptions<DISCO_CC_CI_Vista_DbContext> options) : base(options)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary></summary>
|
||||||
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<CC_CIWiev>().ToView("API_ASSCHIU");
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models.Lift_web_dbcontext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public class LIFT_WEB_BUONI_DbContext : DbContext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public DbSet<BuoniLW>? buoni { get; set; }
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
public LIFT_WEB_BUONI_DbContext(DbContextOptions<LIFT_WEB_BUONI_DbContext> options) : base(options)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary></summary>
|
||||||
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<BuoniLW>().ToTable("BUONI");
|
||||||
|
modelBuilder.Entity<BuoniLW>().HasKey(table => new
|
||||||
|
{
|
||||||
|
table.azienda,
|
||||||
|
table.ser_buono
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -62,5 +62,14 @@ namespace ApiPolo.Models
|
|||||||
|
|
||||||
/// <summary>Form registrazione: check 4</summary>
|
/// <summary>Form registrazione: check 4</summary>
|
||||||
public bool privacy4 { get; set; }
|
public bool privacy4 { get; set; }
|
||||||
|
|
||||||
|
/// <summary>Richiesta del moduulo Timesheet</summary>
|
||||||
|
public bool ModuloTimesheet { get; set; }
|
||||||
|
|
||||||
|
/// <summary>Richiesta del moduulo Rapportini</summary>
|
||||||
|
public bool ModuloRapportini { get; set; }
|
||||||
|
|
||||||
|
/// <summary>Ragione sociale</summary>
|
||||||
|
public string? RagioneSociale { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,5 +66,10 @@ namespace ApiPolo.Models
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime? tddatafi { get; set; }
|
public DateTime? tddatafi { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Flag utente Amministratore per Azienda. Se 1 Amministratore e entra in VT, 0 non entra
|
||||||
|
/// </summary>
|
||||||
|
public int tccodute { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
22
ApiPolo/Models/VT_dbcontext/VT_COMMESSE_APP_DbContext.cs
Normal file
22
ApiPolo/Models/VT_dbcontext/VT_COMMESSE_APP_DbContext.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models.VT_dbcontext
|
||||||
|
{
|
||||||
|
/// <summary>Questo db context serve per creare l'eleco delle commesse da fornire all'APP</summary>
|
||||||
|
public class VT_COMMESSE_APP_DbContext : DbContext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public DbSet<Commessa>? Comm { get; set; }
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
public VT_COMMESSE_APP_DbContext(DbContextOptions<VT_COMMESSE_APP_DbContext> options) : base(options)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<Commessa>().ToView("API_COMMESSE");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
26
ApiPolo/Models/VT_dbcontext/VT_TIMBRATURE_DbContext.cs
Normal file
26
ApiPolo/Models/VT_dbcontext/VT_TIMBRATURE_DbContext.cs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
namespace ApiPolo.Models.VT_dbcontext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public class VT_TIMBRATURE_DbContext : DbContext
|
||||||
|
{
|
||||||
|
/// <summary></summary>
|
||||||
|
public DbSet<Timbratura>? Timbr { get; set; }
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
public VT_TIMBRATURE_DbContext(DbContextOptions<VT_TIMBRATURE_DbContext> options) : base(options)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary></summary>
|
||||||
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<Timbratura>().ToTable("TIMBRATURE");
|
||||||
|
modelBuilder.Entity<Timbratura>().HasKey(table => new
|
||||||
|
{
|
||||||
|
table.id
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<_PublishTargetUrl>C:\SORGENTI\_publish</_PublishTargetUrl>
|
<_PublishTargetUrl>C:\SORGENTI\_publish</_PublishTargetUrl>
|
||||||
<History>True|2024-04-23T12:16:13.9278392Z;True|2024-04-22T11:21:15.8891978+02:00;True|2024-04-19T17:01:58.4424326+02:00;True|2024-04-19T16:00:37.1516625+02:00;True|2024-04-18T17:56:38.4740471+02:00;True|2024-04-18T15:19:13.0301345+02:00;True|2024-04-18T15:08:29.5009047+02:00;True|2024-04-16T17:19:13.2405268+02:00;True|2024-04-16T16:44:53.5665827+02:00;True|2024-04-09T15:05:21.6859040+02:00;True|2024-04-09T12:31:53.7105489+02:00;True|2024-03-29T12:02:59.3951106+01:00;True|2024-03-28T15:51:54.4771087+01:00;True|2024-03-28T15:40:46.5889318+01:00;True|2024-03-28T15:02:39.2709767+01:00;True|2024-03-19T10:11:02.2184437+01:00;True|2024-03-19T09:46:29.5213786+01:00;True|2024-03-13T15:41:36.5129417+01:00;True|2024-03-13T15:04:45.8815190+01:00;True|2024-03-12T12:09:28.7378666+01:00;True|2024-03-07T16:49:05.8765453+01:00;True|2024-03-07T15:04:48.6785344+01:00;True|2024-03-05T18:12:38.1587810+01:00;True|2024-03-05T17:04:25.2897417+01:00;True|2024-02-23T17:51:33.5228272+01:00;True|2024-02-23T15:30:52.3064822+01:00;True|2024-02-21T17:45:19.5871889+01:00;True|2024-02-16T14:49:42.6218309+01:00;True|2024-01-12T15:28:14.3310950+01:00;True|2024-01-11T12:17:47.0416265+01:00;True|2024-01-09T10:56:10.6108110+01:00;True|2024-01-09T10:01:29.4419062+01:00;True|2024-01-09T09:09:56.0678886+01:00;False|2024-01-09T09:09:34.2552726+01:00;True|2024-01-08T17:12:45.9831372+01:00;True|2024-01-08T14:29:20.6298939+01:00;True|2024-01-05T16:13:20.1834182+01:00;True|2024-01-04T16:37:06.7941235+01:00;True|2023-12-21T17:18:34.0526998+01:00;True|2023-12-21T16:15:05.7983943+01:00;False|2023-12-21T16:14:46.9213541+01:00;True|2023-12-21T15:37:56.3166908+01:00;True|2023-12-21T15:06:45.2960170+01:00;True|2023-12-19T10:07:15.3406839+01:00;True|2023-12-19T09:40:37.4542645+01:00;True|2023-12-18T18:10:38.7733804+01:00;True|2023-12-18T17:52:35.2759182+01:00;True|2023-12-18T17:27:30.6925247+01:00;False|2023-12-18T17:27:18.6654468+01:00;True|2023-12-18T17:19:53.6193809+01:00;True|2023-12-18T11:34:31.9683375+01:00;True|2023-12-18T10:49:14.0195219+01:00;True|2023-12-14T15:24:45.4235825+01:00;True|2023-12-14T12:12:59.2505838+01:00;True|2023-12-14T10:06:03.4821381+01:00;False|2023-12-14T10:05:56.1675464+01:00;True|2023-12-13T17:46:06.5114228+01:00;True|2023-12-13T17:18:32.9967555+01:00;True|2023-12-13T17:09:02.2153382+01:00;True|2023-12-13T16:54:26.3998101+01:00;True|2023-12-12T12:29:15.4496576+01:00;True|2023-12-12T10:07:33.8605887+01:00;True|2023-12-07T16:48:32.3661089+01:00;False|2023-12-07T16:48:16.7800909+01:00;True|2023-12-07T15:59:01.9494614+01:00;True|2023-12-06T16:37:11.4189532+01:00;False|2023-12-06T16:36:58.1903924+01:00;True|2023-12-06T15:04:14.7658513+01:00;True|2023-12-06T15:03:56.8183271+01:00;False|2023-12-06T15:02:43.1658892+01:00;True|2023-12-05T14:56:58.6533793+01:00;True|2023-12-05T11:27:46.7461820+01:00;False|2023-12-05T11:27:33.9312828+01:00;True|2023-12-05T10:50:28.4716173+01:00;True|2023-11-30T16:42:31.8596611+01:00;True|2023-11-30T15:55:03.2495195+01:00;True|2023-11-27T15:56:29.4491507+01:00;True|2023-11-27T12:01:19.1611383+01:00;True|2023-11-24T16:17:46.6740447+01:00;True|2023-11-24T14:45:39.1983088+01:00;True|2023-11-21T12:27:46.1304045+01:00;True|2023-11-20T14:46:36.7367797+01:00;True|2023-11-16T15:24:40.0316829+01:00;True|2023-11-16T11:01:34.3117013+01:00;True|2023-11-16T11:00:55.7387444+01:00;True|2023-11-14T09:11:56.7615009+01:00;True|2023-11-09T09:52:23.5464533+01:00;True|2023-11-07T16:06:54.6961557+01:00;False|2023-11-07T16:06:44.9066723+01:00;True|2023-11-06T12:13:06.8671991+01:00;True|2023-10-26T10:42:14.4857090+02:00;True|2023-10-24T09:42:38.9743258+02:00;True|2023-10-23T17:12:45.9054585+02:00;True|2023-10-23T16:29:52.5174378+02:00;True|2023-10-19T16:09:03.8796311+02:00;True|2023-10-19T15:59:31.4939287+02:00;True|2023-10-19T15:40:14.7096576+02:00;True|2023-10-19T14:56:26.8783257+02:00;True|2023-10-19T14:42:33.0463171+02:00;True|2023-10-17T16:39:01.8740450+02:00;</History>
|
<History>True|2024-08-08T12:26:24.6701786Z;True|2024-08-08T09:47:57.4034373+02:00;True|2024-08-06T08:27:53.2075910+02:00;True|2024-08-01T12:54:22.9356998+02:00;True|2024-05-28T12:33:55.2004491+02:00;True|2024-05-28T10:03:22.0746253+02:00;True|2024-05-23T17:46:39.7923992+02:00;True|2024-05-20T14:38:48.9510222+02:00;True|2024-05-16T14:58:45.4167131+02:00;True|2024-05-16T12:48:07.6863652+02:00;True|2024-05-14T15:24:15.9889498+02:00;True|2024-05-13T17:14:51.9627438+02:00;True|2024-05-13T09:55:47.6642637+02:00;True|2024-05-07T15:34:14.3854449+02:00;True|2024-04-30T15:16:06.7760827+02:00;True|2024-04-30T14:47:35.3761581+02:00;True|2024-04-24T16:24:33.9768863+02:00;True|2024-04-23T14:16:13.9278392+02:00;True|2024-04-22T11:21:15.8891978+02:00;True|2024-04-19T17:01:58.4424326+02:00;True|2024-04-19T16:00:37.1516625+02:00;True|2024-04-18T17:56:38.4740471+02:00;True|2024-04-18T15:19:13.0301345+02:00;True|2024-04-18T15:08:29.5009047+02:00;True|2024-04-16T17:19:13.2405268+02:00;True|2024-04-16T16:44:53.5665827+02:00;True|2024-04-09T15:05:21.6859040+02:00;True|2024-04-09T12:31:53.7105489+02:00;True|2024-03-29T12:02:59.3951106+01:00;True|2024-03-28T15:51:54.4771087+01:00;True|2024-03-28T15:40:46.5889318+01:00;True|2024-03-28T15:02:39.2709767+01:00;True|2024-03-19T10:11:02.2184437+01:00;True|2024-03-19T09:46:29.5213786+01:00;True|2024-03-13T15:41:36.5129417+01:00;True|2024-03-13T15:04:45.8815190+01:00;True|2024-03-12T12:09:28.7378666+01:00;True|2024-03-07T16:49:05.8765453+01:00;True|2024-03-07T15:04:48.6785344+01:00;True|2024-03-05T18:12:38.1587810+01:00;True|2024-03-05T17:04:25.2897417+01:00;True|2024-02-23T17:51:33.5228272+01:00;True|2024-02-23T15:30:52.3064822+01:00;True|2024-02-21T17:45:19.5871889+01:00;True|2024-02-16T14:49:42.6218309+01:00;True|2024-01-12T15:28:14.3310950+01:00;True|2024-01-11T12:17:47.0416265+01:00;True|2024-01-09T10:56:10.6108110+01:00;True|2024-01-09T10:01:29.4419062+01:00;True|2024-01-09T09:09:56.0678886+01:00;False|2024-01-09T09:09:34.2552726+01:00;True|2024-01-08T17:12:45.9831372+01:00;True|2024-01-08T14:29:20.6298939+01:00;True|2024-01-05T16:13:20.1834182+01:00;True|2024-01-04T16:37:06.7941235+01:00;True|2023-12-21T17:18:34.0526998+01:00;True|2023-12-21T16:15:05.7983943+01:00;False|2023-12-21T16:14:46.9213541+01:00;True|2023-12-21T15:37:56.3166908+01:00;True|2023-12-21T15:06:45.2960170+01:00;True|2023-12-19T10:07:15.3406839+01:00;True|2023-12-19T09:40:37.4542645+01:00;True|2023-12-18T18:10:38.7733804+01:00;True|2023-12-18T17:52:35.2759182+01:00;True|2023-12-18T17:27:30.6925247+01:00;False|2023-12-18T17:27:18.6654468+01:00;True|2023-12-18T17:19:53.6193809+01:00;True|2023-12-18T11:34:31.9683375+01:00;True|2023-12-18T10:49:14.0195219+01:00;True|2023-12-14T15:24:45.4235825+01:00;True|2023-12-14T12:12:59.2505838+01:00;True|2023-12-14T10:06:03.4821381+01:00;False|2023-12-14T10:05:56.1675464+01:00;True|2023-12-13T17:46:06.5114228+01:00;True|2023-12-13T17:18:32.9967555+01:00;True|2023-12-13T17:09:02.2153382+01:00;True|2023-12-13T16:54:26.3998101+01:00;True|2023-12-12T12:29:15.4496576+01:00;True|2023-12-12T10:07:33.8605887+01:00;True|2023-12-07T16:48:32.3661089+01:00;False|2023-12-07T16:48:16.7800909+01:00;True|2023-12-07T15:59:01.9494614+01:00;True|2023-12-06T16:37:11.4189532+01:00;False|2023-12-06T16:36:58.1903924+01:00;True|2023-12-06T15:04:14.7658513+01:00;True|2023-12-06T15:03:56.8183271+01:00;False|2023-12-06T15:02:43.1658892+01:00;True|2023-12-05T14:56:58.6533793+01:00;True|2023-12-05T11:27:46.7461820+01:00;False|2023-12-05T11:27:33.9312828+01:00;True|2023-12-05T10:50:28.4716173+01:00;True|2023-11-30T16:42:31.8596611+01:00;True|2023-11-30T15:55:03.2495195+01:00;True|2023-11-27T15:56:29.4491507+01:00;True|2023-11-27T12:01:19.1611383+01:00;True|2023-11-24T16:17:46.6740447+01:00;True|2023-11-24T14:45:39.1983088+01:00;True|2023-11-21T12:27:46.1304045+01:00;True|2023-11-20T14:46:36.7367797+01:00;True|2023-11-16T15:24:40.0316829+01:00;</History>
|
||||||
<LastFailureDetails />
|
<LastFailureDetails />
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -305,6 +305,9 @@ namespace ApiPolo
|
|||||||
services.AddDbContext<DISCO_CC_CI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
|
services.AddDbContext<DISCO_CC_CI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
|
services.AddDbContext<DISCO_CC_CI_Vista_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("DISCO")
|
||||||
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
|
));
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region SAROM
|
#region SAROM
|
||||||
@ -718,86 +721,95 @@ namespace ApiPolo
|
|||||||
services.AddDbContext<VT_STO_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
|
services.AddDbContext<VT_STO_RAPP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
|
services.AddDbContext<VT_TIMBRATURE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
|
||||||
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
|
));
|
||||||
|
services.AddDbContext<VT_COMMESSE_APP_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("VIRTUAL_TASK")
|
||||||
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
|
));
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LIFT_WEB
|
#region LIFT_WEB
|
||||||
services.AddDbContext<LIFT_WEB_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CHIAMATEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CHIUSUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_TECNICIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_RAPP_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_MANPROG_TECDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_COMPO_IMPIADbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_COMPO_IMPIADbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_SALDIARTDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_SALDIARTDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_COMPO_IMPIA_TABLEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_COMPO_IMPIA_TABLEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_MAG_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_MAG_NEWDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_MAGAZZINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_STO_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CLIENTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_CAUS_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CAUS_RAPPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_PAGAMDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_PRESEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_COMMESSEDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_TIMBRATUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_TIMBRATUREDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_RAPPORTINIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_STO_IMPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_STO_IMPDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_IMPIANTIDbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_SOSTITUZIONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_SOSTITUZIONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
services.AddDbContext<LIFT_WEB_AZIENDARIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_AZIENDARIF_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CHIAMATA_PROG_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
services.AddDbContext<LIFT_WEB_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CHIAMATE_TABLE_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
services.AddDbContext<LIFT_WEB_CPWARN_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("SICILIA")
|
services.AddDbContext<LIFT_WEB_CPWARN_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
|
));
|
||||||
|
services.AddDbContext<LIFT_WEB_BUONI_DbContext>(options => options.UseSqlServer(Configuration.GetConnectionString("LIFT_WEB")
|
||||||
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
, options => { options.CommandTimeout(commandTimeoutInSeconds); }
|
||||||
));
|
));
|
||||||
#endregion
|
#endregion
|
||||||
@ -888,8 +900,7 @@ namespace ApiPolo
|
|||||||
//gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API WS2016", Version = "v3.3" });
|
//gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API WS2016", Version = "v3.3" });
|
||||||
DateTime oggi = DateTime.Now;
|
DateTime oggi = DateTime.Now;
|
||||||
string dt = oggi.ToString();
|
string dt = oggi.ToString();
|
||||||
//gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API TEST - v.app 1.13", Version = dt });
|
gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API - v.app 1.24", Version = dt });
|
||||||
gen.SwaggerDoc("v1", new OpenApiInfo { Title = "POLO API - v.app 1.23", Version = dt });
|
|
||||||
|
|
||||||
var filePath = Path.Combine(System.AppContext.BaseDirectory, "ApiPolo.xml");
|
var filePath = Path.Combine(System.AppContext.BaseDirectory, "ApiPolo.xml");
|
||||||
gen.IncludeXmlComments(filePath);
|
gen.IncludeXmlComments(filePath);
|
||||||
@ -914,9 +925,6 @@ namespace ApiPolo
|
|||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
Console.WriteLine(ex.Message);
|
Console.WriteLine(ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Configure:This method gets called by the runtime. Use this method to configure the HTTP request pipeline. </summary>
|
/// <summary>Configure:This method gets called by the runtime. Use this method to configure the HTTP request pipeline. </summary>
|
||||||
@ -933,7 +941,6 @@ namespace ApiPolo
|
|||||||
|
|
||||||
});
|
});
|
||||||
//app.UseHttpsRedirection();
|
//app.UseHttpsRedirection();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
176d63897cfc0614b5bfe24857cce51a153d09d4
|
24e948b894f3a9c8b0dbb7ceb95d91ec4ad7f149
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
1
ApiPolo/obj/Debug/net6.0/project.razor.vs.json
Normal file
1
ApiPolo/obj/Debug/net6.0/project.razor.vs.json
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
71d888e4a2407482603b54946eeb659e158ae1ab
|
bb47c642dbd594753d6835798ad84132c6c0e290
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user