Last active
January 15, 2022 12:14
-
-
Save enisn/3eac15e6761ee13719b217c8c7f36ca4 to your computer and use it in GitHub Desktop.
Mastering at Source Generatos - IRepository anatomy
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
namespace Awesome.Api.Data; | |
public interface IRepository<TModel> | |
where TModel : class, IIdentifiable | |
{ | |
Task<List<TModel>> GetListAsync(); | |
Task<TModel> GetSingleAsync(Guid id); | |
Task InsertAsync(TModel model); | |
Task UpdateAsync(Guid id, TModel model); | |
Task DeleteAsync(Guid id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment