WPF hinzugefügt
This commit is contained in:
21
DataStoring.Contract/IRepository.cs
Normal file
21
DataStoring.Contract/IRepository.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user