Skip to content

Instantly share code, notes, and snippets.

@explorer14
Last active December 14, 2018 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/d7cd3c93e7be5318fae628f6a6c2ccb4 to your computer and use it in GitHub Desktop.
Save explorer14/d7cd3c93e7be5318fae628f6a6c2ccb4 to your computer and use it in GitHub Desktop.
public interface IRepository
{
Task GetOneAsync(Guid id);
Task<IEnumerable<TDomainObject>> GetListAsync(
Expression<Func<TDomainObject,bool>> predicate);
Task AddAsync(TDomainObject domainObject);
Task UpdateAsync(TDomainObject updatedEntity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment