摘要: 丁酉年夏,鹏镇守武汉。数月,政通人和,百废俱兴,乃重修代码规范,属予作文以记之。予观博客园胜状,驼峰命名,强制注释,迫之芸芸码士,俱迂腐巨细之论,此前人之述备矣。然,求同存异,团队建设,收买人心,论之甚少,此大道也,得之可平天下阅读全文
posted @ 2017-07-25 20:28 会长 阅读(10316) 评论(52) 编辑
摘要: There are two types of Execptions which can be throwed from the WCF service. They are Application excepiton and Infrastructure exception . Handle Appl阅读全文
posted @ 2017-06-03 09:37 会长 阅读(136) 评论(5) 编辑
摘要: 示例代码下载地址:[WCFDemo1Day][1] 概述 客户端向WCF服务发出请求后,服务端会实例化一个Service对象(实现了契约接口的对象)用来处理请求,实例化Service对象以及维护其生命周期的方式在WCF中共有三种不同的类型,分别是: Per Call Per Session Sing阅读全文
posted @ 2017-06-02 08:19 会长 阅读(35) 评论(0) 编辑
摘要: This is a very simple demo which can help you create a wcf applition quickly. Create a Solution Open Vistual Stuido and create a solution named WCFDem阅读全文
posted @ 2017-06-02 08:14 会长 阅读(29) 评论(0) 编辑
摘要: 开放封闭原则 基本描述 一个设计良好的应用程序应该做到对扩展开放,对修改封闭。换言之:当系统需要添加一个新的模块时,尽可能少地修改已有的代码(对修改封闭),通过添加新的类型(class)以增加新的功能(对扩展开放)。 举例说明 假设要开发一个二目运算类Calculater,其不考虑扩展性的设计如下:阅读全文
posted @ 2017-05-30 17:22 会长 阅读(85) 评论(0) 编辑
摘要: The default Way to handle concurrency of Entity Framework is using optimistic concurrency . When two clinets update the same entity, one of theirs dat阅读全文
posted @ 2017-05-27 09:04 会长 阅读(46) 评论(0) 编辑
摘要: Joins allow developers to combine data from multiple tables into a sigle query. Let's have a look at codes: Creating a project 1. Create a project nam阅读全文
posted @ 2017-05-24 08:59 会长 阅读(27) 评论(0) 编辑
摘要: Complex types are classes that map to a subset of columns of a table.They don't contains key. They are the Value Objects . For example, you have a ent阅读全文
posted @ 2017-05-16 09:05 会长 阅读(45) 评论(2) 编辑
摘要: Sometimes, you need to find some data in an existing context instead of the database. By befault, Entity Framework always find data in database. If yo阅读全文
posted @ 2017-05-15 09:16 会长 阅读(23) 评论(2) 编辑
摘要: Creating Entities First of all, Let's create some entities to have a test. 1. Create a project 2. Add following packages by NuGet EntityFramework MySq阅读全文
posted @ 2017-05-14 18:40 会长 阅读(42) 评论(0) 编辑