摘要:
参考:https://www.cnblogs.com/zxtceq/articles/14864010.html 待续 阅读全文
摘要:
参考杨中科的教程 1.先添加接口 using MediatR; namespace NetOptions.Entities; public interface IDomainEnvent { void AddNotification(INotification notification); IEnu 阅读全文
摘要:
一 mac执行dotnet ef报错 dotnet tool install --global dotnet-ef 二 1.增加迁移 dotnet ef migrations add 名字 --context DBContext名字 2.删除最近一次的迁移 > dotnet ef migration 阅读全文
摘要:
https://developer.aliyun.com/article/1162975 待续。。 阅读全文
摘要:
一 GitHub地址:https://github.com/jbogard/MediatR 有了 MediatR 我们可以在应用中轻松实现 CQRS:IRequest<> 的消息名称以 Command 为结尾的是命令,其对应的 Handler 执行「写」任务 IRequest<> 的消息名称以 Qu 阅读全文
摘要:
一 微软内部 微软内部定义的状态码: ublic static class StatusCodes { public const int Status100Continue = 100; public const int Status101SwitchingProtocols = 101; publ 阅读全文
摘要:
完全根据业务顺序去写的代码,但有的时候确实完全可以这些写。 阅读全文
摘要:
https://github.com/xin9le/FastEnum 简单使用: enum Company { [EnumMember(Value = "Apple, Inc.")] Apple = 0, } var value = Company.Apple.GetEnumMemberValue( 阅读全文
摘要:
{ "code": 200, //状态码 (int) "message": "string", //消息 (string) "data": {} //Action的原始响应内容 } https://github.com/stratosblue/cuture.aspnetcore.responseau 阅读全文
摘要:
services.Configure<BookOptions>(Configuration.GetSection(BookOptions.Book)); builder.Services.AddOptions<Test>(builder.Configuration[""]); builder.Ser 阅读全文