Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OaaS/HeuristicLab.Services.Optimization.Billing/Interfaces/IGenericDao.cs @ 9577

Last change on this file since 9577 was 9577, checked in by spimming, 11 years ago

#1888:

  • Added dal and service interfaces and implementations
  • Added dbcontext for billing
File size: 402 bytes
Line 
1using System;
2using System.Linq;
3using System.Linq.Expressions;
4
5namespace HeuristicLab.Services.Optimization.Billing.DAL {
6
7  public interface IGenericDao<T, ID> {
8    T FindById(ID id);
9    IQueryable<T> FindBy(Expression<Func<T, bool>> predicate);
10    IQueryable<T> FindAll();
11    void Add(T entity);
12    void Update(T entity);
13    void Delete(T entity);
14    void Commit();
15  }
16}
Note: See TracBrowser for help on using the repository browser.