Free cookie consent management tool by TermsFeed Policy Generator

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

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

#1888:

  • Set flag to indicate a modified model object
  • Add dao query method to specify includes as parameter
  • cleaned up the using of namespaces to qualify types
File size: 385 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 InsertOrUpdate(T entity);
12    void Delete(T entity);
13    void Commit();
14  }
15}
Note: See TracBrowser for help on using the repository browser.