28 lines
627 B
C#
28 lines
627 B
C#
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;
|
|
}
|
|
}
|
|
|
|
}
|