aggiunti metodi + dbmodel x controllo articolo
This commit is contained in:
@@ -27,7 +27,28 @@ namespace MP.Data.Controllers
|
||||
{
|
||||
_configuration = null;
|
||||
}
|
||||
#region gestione articoli
|
||||
|
||||
/// <summary>
|
||||
/// articolo MAG corrispondente all' articolo selezionato
|
||||
/// </summary>
|
||||
/// <param name="artSearch"></param>
|
||||
/// <returns></returns>
|
||||
public AnagArticoli_MAG artBySearch(string artSearch)
|
||||
{
|
||||
AnagArticoli_MAG dbResult = new AnagArticoli_MAG();
|
||||
using (var dbCtx = new MoonPro_InveContext(_configuration))
|
||||
{
|
||||
dbResult = dbCtx
|
||||
.DbArtMag
|
||||
.AsNoTracking()
|
||||
.Where(x => x.CodArt == artSearch)
|
||||
.FirstOrDefault();
|
||||
}
|
||||
return dbResult;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region gestione config
|
||||
|
||||
@@ -178,7 +199,6 @@ namespace MP.Data.Controllers
|
||||
|
||||
#endregion gestione scansioni
|
||||
|
||||
|
||||
#region gestione operatori
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
#nullable disable
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
|
||||
namespace MP.Data.DatabaseModels
|
||||
{
|
||||
[Table("AnagArticoli")]
|
||||
public partial class AnagArticoli_MAG
|
||||
{
|
||||
#region Public Properties
|
||||
[Key]
|
||||
public string CodArt { get; set; }
|
||||
public string DescrArt { get; set; }
|
||||
public string CodArtExt { get; set; }
|
||||
public string CodStato { get; set; }
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -52,6 +52,7 @@ namespace MP.Data
|
||||
public virtual DbSet<ScanDataModel> DbScanData { get; set; }
|
||||
public virtual DbSet<AnagUdcModel> DbUdcData { get; set; }
|
||||
public virtual DbSet<AnagLottoModel> DbLottoData { get; set; }
|
||||
public virtual DbSet<AnagArticoli_MAG> DbArtMag { get; set; }
|
||||
#endregion PER INVE
|
||||
|
||||
#region PER SPEC
|
||||
|
||||
Reference in New Issue
Block a user