login funcional

This commit is contained in:
2024-09-09 23:27:50 -03:00
parent 3de35ba192
commit 48983ab179
24 changed files with 2404 additions and 93 deletions

View File

@@ -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;