上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 65 下一页
摘要: 一,杂谈-理论 参考 https://www.cnblogs.com/davenkin/p/ddd-coding-practices.html 1 基于“Service + 贫血模型”的实现: 主要的特点是:存在一个贫血的“领域对象”,业务逻辑通过一个Service类实现,然后通过setter方法更 阅读全文
posted @ 2023-06-06 13:48 vba是最好的语言 阅读(43) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/zxtceq/articles/14864010.html 待续 阅读全文
posted @ 2023-06-06 13:05 vba是最好的语言 阅读(10) 评论(0) 推荐(0)
摘要: 参考杨中科的教程 1.先添加接口 using MediatR; namespace NetOptions.Entities; public interface IDomainEnvent { void AddNotification(INotification notification); IEnu 阅读全文
posted @ 2023-06-05 22:09 vba是最好的语言 阅读(39) 评论(0) 推荐(0)
摘要: 一 mac执行dotnet ef报错 dotnet tool install --global dotnet-ef 二 1.增加迁移 dotnet ef migrations add 名字 --context DBContext名字 2.删除最近一次的迁移 > dotnet ef migration 阅读全文
posted @ 2023-06-05 21:24 vba是最好的语言 阅读(14) 评论(0) 推荐(0)
摘要: https://developer.aliyun.com/article/1162975 待续。。 阅读全文
posted @ 2023-06-05 15:57 vba是最好的语言 阅读(9) 评论(0) 推荐(0)
摘要: 一 GitHub地址:https://github.com/jbogard/MediatR 有了 MediatR 我们可以在应用中轻松实现 CQRS:IRequest<> 的消息名称以 Command 为结尾的是命令,其对应的 Handler 执行「写」任务 IRequest<> 的消息名称以 Qu 阅读全文
posted @ 2023-06-05 10:54 vba是最好的语言 阅读(155) 评论(0) 推荐(0)
摘要: 一 微软内部 微软内部定义的状态码: ublic static class StatusCodes { public const int Status100Continue = 100; public const int Status101SwitchingProtocols = 101; publ 阅读全文
posted @ 2023-06-05 09:27 vba是最好的语言 阅读(44) 评论(0) 推荐(0)
摘要: 完全根据业务顺序去写的代码,但有的时候确实完全可以这些写。 阅读全文
posted @ 2023-06-03 11:02 vba是最好的语言 阅读(14) 评论(0) 推荐(0)
摘要: https://github.com/xin9le/FastEnum 简单使用: enum Company { [EnumMember(Value = "Apple, Inc.")] Apple = 0, } var value = Company.Apple.GetEnumMemberValue( 阅读全文
posted @ 2023-06-02 17:54 vba是最好的语言 阅读(43) 评论(0) 推荐(0)
摘要: { "code": 200, //状态码 (int) "message": "string", //消息 (string) "data": {} //Action的原始响应内容 } https://github.com/stratosblue/cuture.aspnetcore.responseau 阅读全文
posted @ 2023-06-02 17:35 vba是最好的语言 阅读(68) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 65 下一页