Entityframework hinzugefügt

This commit is contained in:
2023-03-28 09:20:45 +02:00
parent 5b2ed72fe3
commit a1f5b8437c
18 changed files with 910 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Shared.Contracts
{
public interface IDataService<T>
{
Task<IEnumerable<T>> GetAll();
Task<T> Get(int id);
Task<T> Create(T entity);
Task<T> Update(int id,T entity);
Task<bool> Delete(int id);
T CreateNonAsync(T entity);
}
}