Agregar archivos de proyecto.
This commit is contained in:
27
bdGrupoSanchoToro/dbcontext/EnumeracionesService.cs
Normal file
27
bdGrupoSanchoToro/dbcontext/EnumeracionesService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using bdGrupoSanchoToro;
|
||||
using bdGrupoSanchoToro.db;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bdGrupoSanchoToro.dbcontext
|
||||
{
|
||||
public class EntidadService
|
||||
{
|
||||
private readonly tscGrupoSanchoToro _context;
|
||||
|
||||
public EntidadService(tscGrupoSanchoToro context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
|
||||
public tscGrupoSanchoToro GetContextFromEntity(enumeraciones entidad)
|
||||
{
|
||||
var entry = _context.Entry(entidad);
|
||||
return (tscGrupoSanchoToro)entry.Context;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user