MVC+EF 理解和实现仓储模式和工作单元模式 原文:Understanding Repository and Unit of Work Pattern and Implementing Generic Repository in ASP.NET MVC using Entity Framework ...
分类:
Web程序 时间:
2020-03-05 20:50:16
阅读次数:
95
问题描述 在很多系统中,存在多对多关系的维护。如下图: 这种多对多结构在数据库中大部分有三个数据表,其中两个主表,还有一个关联表,关联表至少两个字段,即左表主键、右表主键。 如上图,其中的Supplier表和Product是主业务表,ProductSupplier是关联表,在一些复杂的业务系统中,这 ...
分类:
其他好文 时间:
2020-03-05 20:46:55
阅读次数:
90
说明:一个用C#编写的WebAPI操作类,只写了Get Post 部分。 using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.L ...
Easycode是idea的一个插件,可以直接对数据的表生成entity,controller,service,dao,mapper,无需任何编码,简单而强大。 1、安装(EasyCode) 我这里的话是已经那装好了。 建议大家在安装一个插件,叫做Lombok。Lombok能通过注解的方式,在编译时 ...
分类:
其他好文 时间:
2020-03-05 10:40:28
阅读次数:
53
以上是代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication ...
分类:
编程语言 时间:
2020-03-05 00:49:21
阅读次数:
87
软件核心复杂性应对之道 从前面我们知道,软件存在三个复杂度,即规模、结构、变化带来的复杂性。好的软件不仅仅是面向给用户使用的,第一批用户应当是开发自己,这与产品本身的柔性设计息息相关。但是从设计开始,我们就应当从以下几个步骤来规范开发: 隔离领域:引入应用层。 将Entity和ValueObject ...
分类:
其他好文 时间:
2020-03-04 16:22:43
阅读次数:
55
原文:钉钉审批流回调 先注册回调接口(只需要调用注册回调接口一次), using Newtonsoft.Json; 1 public void DingdingTest() 2 { 3 string accessToken = dingApp.getAccessToken(); 4 5 string... ...
分类:
其他好文 时间:
2020-03-04 14:31:44
阅读次数:
122
C#史上最简单读写xml文件方式,创建控制台应用程序赋值代码,就可以运行,需要改动,请自行调整 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; ...
记录https://docs.microsoft.com/zh-cn/dotnet/csharp/programming-guide/concepts/linq/linq-and-file-directories的学习 查询具有指定扩展名的文件 (SearchOption.AllDirectorie ...
分类:
其他好文 时间:
2020-03-04 00:20:52
阅读次数:
96
schedule是PSA的一个检查当前项目的task 列表. 使用的是 msdyn_projecttask entity. schedule的值可通过PSA plugin获取Microsoft Project的值然后回传到PSA中. 首先我们要添加一个subgrid 其次在controls里选择 C ...
分类:
其他好文 时间:
2020-03-03 22:29:26
阅读次数:
59