Se le agrega R del CRUD para el master detail de los viajes

develop
Al Garcia 2 years ago
parent 39429d2f6d
commit b9be1d974a
  1. 11
      DTO/Operaciones/DTOOpViajesServicios.cs
  2. 10
      Models/Operaciones/IOpViajesServicios.cs
  3. 9
      Repository/Operaciones/OpViajesRepository.cs
  4. 4
      obj/Debug/net6.0/AOLBackend.GeneratedMSBuildEditorConfig.editorconfig
  5. BIN
      obj/Debug/net6.0/AOLBackend.assets.cache
  6. 6
      obj/staticwebassets.pack.sentinel

@ -0,0 +1,11 @@
namespace AOLBackend.DTO.Operaciones
{
public class DTOOpViajesServicios
{
public int id { get; set; } = 0;
public int IdViaje { get; set; } = 0;
public int IdServicio { get; set; } = 0;
public string Servicio { get; set; } = null!;
public byte Activo { get; set; } = 1;
}
}

@ -0,0 +1,10 @@
namespace AOLBackend.Models.Operaciones
{
public class IOpViajesServicios
{
public int id { get; set; } = 0;
public int IdViaje { get; set; } = 0;
public int IdServicio { get; set; } = 0;
public byte Activo { get; set; } = 1;
}
}

@ -1,6 +1,7 @@
using AOLBackend.Context;
using AOLBackend.Contracts.Operaciones;
using AOLBackend.DTO.Operaciones;
using AOLBackend.Models.Operaciones;
using Dapper;
using System.Data;
@ -45,7 +46,13 @@ namespace AOLBackend.Repository.Operaciones
var entrada = await connection.QueryAsync<DTOOpViajes>(query, new { }, commandType: CommandType.StoredProcedure);
return entrada;
}
public async Task<IEnumerable<DTOOpViajesServicios>> GetAllServices()
{
var query = "[Operaciones.Viajes.Servicios.Get]";
using var connection = _context.CreateConnection();
var entrada = await connection.QueryAsync<DTOOpViajesServicios>(query, new { }, commandType: CommandType.StoredProcedure);
return entrada;
}
public async Task<Boolean> Delete(int id)
{
var query = "[Operaciones.Viajes.Delete]";

@ -8,9 +8,9 @@ build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = AOLBackend
build_property.RootNamespace = AOLBackend
build_property.ProjectDir = C:\projects\staging\AOLBackend\
build_property.ProjectDir = c:\projects\staging\AOLBackend\
build_property.RazorLangVersion = 6.0
build_property.SupportLocalizedComponentNames =
build_property.GenerateRazorMetadataSourceChecksumAttributes =
build_property.MSBuildProjectDirectory = C:\projects\staging\AOLBackend
build_property.MSBuildProjectDirectory = c:\projects\staging\AOLBackend
build_property._RazorSourceGeneratorDebug =

@ -88,3 +88,9 @@
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0

Loading…
Cancel
Save