C# .Net6 repository pattern performace impact on server resources

I would like to know what the performance difference is between these 2 ways of inserting data into a database. The performance difference i am talking about is standard usage of server resources and not the speed at which data is inserted into the database. In the first example i am adding a log into… Read More C# .Net6 repository pattern performace impact on server resources

ASP.NET Core – Possible Null Reference Return in Generic Repository

In ASP.NET Core-6 Entity Framework, I am using Generic Repository: public interface IGenericRepository<T> where T : class { Task<T> GetByIdAsync(object id); } public class GenericRepository<T> : IGenericRepository<T> where T : class { private readonly ApplicationDbContext _context; internal readonly DbSet<T> _table; public GenericRepository(ApplicationDbContext context) { _context = context; _table = context.Set<T>(); } public virtual async Task<T>… Read More ASP.NET Core – Possible Null Reference Return in Generic Repository