login funcional
This commit is contained in:
@@ -1,22 +1,14 @@
|
||||
using Entidades;
|
||||
using System.Collections.ObjectModel;
|
||||
using Entidades;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Modelo;
|
||||
|
||||
public abstract class RepositorioBase<T> where T : class, new()
|
||||
{
|
||||
private AlquilaFacilContext Context { get; set; } = new AlquilaFacilContext();
|
||||
protected AlquilaFacilContext Context { get; set; } = new AlquilaFacilContext();
|
||||
|
||||
public void Add(T t){
|
||||
Context.Add(t);
|
||||
}
|
||||
public void Mod(T t){
|
||||
Context.Update(t);
|
||||
}
|
||||
public void Del(T t){
|
||||
|
||||
Context.Remove(t);
|
||||
}
|
||||
public abstract ReadOnlyCollection<T> Listar();
|
||||
|
||||
public bool Guardar(){
|
||||
bool ret = false;
|
||||
|
||||
Reference in New Issue
Block a user