Created
October 16, 2017 13:25
-
-
Save fasetto/66a5e9d52d96f492af60a840ab8cab38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRepository<TEntity> where TEntity : EntityBase | |
{ | |
Task AddNewAsync(TEntity entity); | |
Task<bool> UpdateAsync(ObjectId id, string field, string value); | |
Task<TEntity> GetByIdAsync(ObjectId id); | |
Task<IEnumerable<TEntity>> GetByFieldAsync(string field, string value); | |
Task<long> DeleteAllAsync(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment