WPF hinzugefügt

This commit is contained in:
Husky
2021-02-26 18:31:57 +01:00
parent 6761b17f4d
commit 746353e54e
34 changed files with 1261 additions and 37 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace DataStoring.Contract
{
public interface IRepository<TEntity> where TEntity : class
{
IQueryable<TEntity> Query { get; }
void Insert(TEntity entity);
void Update(TEntity entity);
void Delete(int id);
IEnumerable<TEntity> Get(
Expression<Func<TEntity,bool>> filter = null,
Func<IQueryable<TEntity>, IOrderedQueryable<TEntity>> orderBy = null,
string includeProperties = "");
//TEntity GetObjectByID(object id);
}
}