Last active
January 13, 2020 15:21
-
-
Save jbogard/2a2fe2a05182ac44d6803ff90c0536b1 to your computer and use it in GitHub Desktop.
Revisions
-
jbogard revised this gist
Jan 13, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,9 @@ public interface IDocumentRepository<T> where T : IAggregate { // we expose IMongoQueryable directly because it has Mongo-specific methods IMongoQueryable<T> Query(); Task<T> Get(Guid id); Task Save(T document); Task Update(T document, Expression<Func<T, bool>> filter); Task Update(T document); IMongoCollection<T> Collection { get; } } -
jbogard created this gist
Jan 13, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ public interface IDocumentRepository<T> where T : IAggregate { IMongoQueryable<T> Query(); Task<T> Get(Guid id); Task Save(T document); Task Update(T document, Expression<Func<T, bool>> filter); Task Update(T document); }