Created
August 5, 2017 22:17
-
-
Save aramkoukia/94278abdfb08280dfbde0dd110b39ba5 to your computer and use it in GitHub Desktop.
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 characters
| public class EFCore2VsDapper | |
| { | |
| EFRepository _EFRepo; | |
| DapperRepository _DapperRepo; | |
| public EFCore2VsDapper() | |
| { | |
| _EFRepo = new EFRepository(); | |
| _DapperRepo = new DapperRepository(); | |
| } | |
| [Benchmark] | |
| public List<Product> GetProductsWithEntityFramework() => _EFRepo.GetAllProductsByCategory(10); | |
| [Benchmark] | |
| public List<Product> GetProductsWithDapper() => _DapperRepo.GetAllProductsByCategory(10); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment