It should be IRepository<ExtendedAuditLog, long> since AuditInfo is not an entity.
If you don't want to use CustomData (as suggested by @alirizaadiyahsi), you have to do your custom insert (as suggested by @alper). You should override Task SaveAsync(AuditInfo auditInfo) to save your ExtendedAuditLog, but NOT call base.SaveAsync(auditInfo).
Resolved here: #4101@346344f6-15e8-4523-9b12-bb98907bebc3
Running
dotnet build
from the command line in the public project folder will fix this.
You can implement IExceptionFilter and replace the exception:
public class ExceptionFilter : IExceptionFilter, ITransientDependency
{
public void OnException(ExceptionContext context)
{
if (context.Exception is UserFriendlyException)
{
return;
}
context.Exception = new UserFriendlyException("We could not service your request at this stage, please try again later", context.Exception);
}
}
Then, in Startup class, add the filter in ConfigureServices method:
services.AddMvc(options =>
{
options.Filters.AddService(typeof(ExceptionFilter));
});
Can you describe your use case?
UserManager userManager = new UserManager(); ... protected class UserManager : AgbizCareersDemoAppServiceBase { }
Do you mean:
Nice share, @BBakerMMC. "Google says" is a bit misleading though, more like "Google gives this link".
I would like to share a set of examples:
Deal breakers from the article:
Make the change in this commit: https://github.com/aspnetzero/aspnet-zero-core/commit/60613540b371ac5901185800132f1579c6179095
It looks like you are using a pre-v2.1.0 version of ABP. Try upgrading to v2.3.0.
Please read:
If you install a fresh version of VS 2017, then NuGet and .NET Core SDK version should be correct. Otherwise, install those manually.