摘要:
// Read Repository. public interface IUserReadRepository : IReadOnlyRepository<AppUser, Guid> { } // Assign DbContext. public class UserReadRepository 阅读全文
摘要:
在程序包管理器控制台程序中执行 【dotnet build】 ,然后重新编译程序集 阅读全文
摘要:
单播模式 NuGet引用库 MediatR MediatR.Extensions.Microsoft.DependencyInjection Microsoft.Extensions.DependencyInjection Newtonsoft.Json 非必须,用来测试使用 创建测试实体类 pub 阅读全文
摘要:
1.在WMSBase.EntityFrameworkCore 安装 Microsoft.Extensions.Logging.Debug 2. 在WMSBaseDbContext类中添加 public static readonly LoggerFactory MyLoggerFactory = n 阅读全文
摘要:
需要在 HttpApi.Host 的OnApplicationInitialization方法下配置 AsyncHelper.RunSync(async () => { using (var scope = context.ServiceProvider.CreateScope()) { await 阅读全文
摘要:
The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'. chrome://flags/#same-site-by-default-cookies chrome://flags/#cookies-witho 阅读全文
摘要:
1 Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Local; }); 阅读全文
摘要:
1 Configure<AbpAntiForgeryOptions>(options => 2 { 3 options.TokenCookie.Expiration = TimeSpan.Zero; 4 options.AutoValidate = false; //表示不验证防伪令牌 5 //op 阅读全文
摘要:
1 public override void ConfigureServices(ServiceConfigurationContext context) 2 { 3 context.Services.ConfigureApplicationCookie(options => 4 options.E 阅读全文
摘要:
1 private void ConfigureDateTime() 2 { 3 Configure<MvcNewtonsoftJsonOptions>(options => 4 { 5 options.SerializerSettings.DateFormatString = "yyyy-MM-d 阅读全文