02 2014 档案
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticAutoResetEventgreenLight=newAutoResetEvent(false);staticAutoResetEventredLight=newAutoResetEvent(false);staticvoidMain(strin
阅读全文
摘要:运行环境:VS2012,添加的EntityFramework为6.0.2版本不用太关心,只要知道原理就行了:基本代码就这几行:namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Blogbg=newBlog{BlogId=1,BlogName="ddd"};BlogContextdb=newBlogContext();db.BlogList.Add(bg);db.SaveChanges(); Console.WriteLine(db.BlogList.Count());//这句主要是看
阅读全文
摘要:注意点:1, 2, 3,引用地址为:net.tcp://localhost:8001/mex111(可以右键引用的上服务修改那个地址)4,源码下载
阅读全文
摘要:配置多个终节点的意义(自己理解):一个服务可以有多个终节点,网上也经常有人说终节点才是服务的真正的接口,的确如此,当我们为一个服务配置多个终节点时,就表明这个服务可以被以不同的方式访问(不同的绑定等等),我们配置完服务端后,在客户端引用这个服务(引用服务只是为了让你看明白,它生成了什么东西),你会发...
阅读全文

浙公网安备 33010602011771号