eisk.webapi
eisk.webapi copied to clipboard
Project based on latest .NET (v6.0) technologies for building scalable web api, along with clean architecture patterns.
The filter should do the following: * return json formatted response. ([reference 1](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/error-handling?view=aspnetcore-2.2), [reference 2](https://code-maze.com/global-error-handling-aspnetcore/)) * (optional) convert the underlying system exception message to a generic user friendly message *...
Using default dotnet core log support https://docs.microsoft.com/en-us/aspnet/core/fundamentals/logging
public class EntityDataService : IEntityDataService where TEntity : class, new() { ... public virtual async Task SqlCommand(string SqlString) { await DbContext.Database.ExecuteSqlCommandAsync(SqlString); } } /////////////////////////////////////////////////////////////////////////////// public interface IEntityDataService where TEntity :...
Hi, I have added logging (log4net based) and global exception logic. Please share your observation. I apologize for any as this is my first open-source contribution. Thanks, Ash