上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using Microsoft.CSharp;using System.CodeDom.Compiler;namespace WindowsFormsApplication1{ public partial class Form2 : For... 阅读全文
posted @ 2014-03-24 17:35 pnljs 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Reflection;67namespaceConsoleApplication18{9classProgram10{11staticvoidMain(string[]args)12{13//Operationop=newOperation();14MethodInfomethod=typeof(Operation).GetMethod("Add");15Attribute[]atts= 阅读全文
posted @ 2014-03-19 10:57 pnljs 阅读(5264) 评论(0) 推荐(0) 编辑
摘要: 设置主键列:this.tableTestData.PrimaryKey = new DataColumn[] { this.tableTestData.Columns[0] }; 阅读全文
posted @ 2014-03-19 09:23 pnljs 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Mono.addin是一个插件框架,更多信息请访问http://monoaddins.codeplex.com/ 阅读全文
posted @ 2014-03-06 12:08 pnljs 阅读(127) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Threading;namespaceConsoleApplication1{classProgram{staticAutoResetEventgreenLight=newAutoResetEvent(false);staticAutoResetEventredLight=newAutoResetEvent(false);staticvoidMain(strin 阅读全文
posted @ 2014-02-16 21:22 pnljs 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 运行环境: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());//这句主要是看 阅读全文
posted @ 2014-02-15 17:48 pnljs 阅读(5993) 评论(1) 推荐(0) 编辑
摘要: 注意点:1, 2, 3,引用地址为:net.tcp://localhost:8001/mex111(可以右键引用的上服务修改那个地址)4,源码下载 阅读全文
posted @ 2014-02-08 11:31 pnljs 阅读(3765) 评论(0) 推荐(0) 编辑
摘要: 配置多个终节点的意义(自己理解):一个服务可以有多个终节点,网上也经常有人说终节点才是服务的真正的接口,的确如此,当我们为一个服务配置多个终节点时,就表明这个服务可以被以不同的方式访问(不同的绑定等等),我们配置完服务端后,在客户端引用这个服务(引用服务只是为了让你看明白,它生成了什么东西),你会发... 阅读全文
posted @ 2014-02-08 10:19 pnljs 阅读(5018) 评论(2) 推荐(0) 编辑
摘要: DECLARE@DOCXML='C#inDepthJohnSkeet201062.30EffectiveC#BillWagner201049.00SQL2008技术内幕ItzikBen-Gan201090.20JavaScript权威指南DavidFlanagan200787.20';--查询所有书籍的分类SELECTT.C.value('@category','VARCHAR(16)')FROM@DOC.nodes('/books/book')AST(C);--查询所有C#书籍的名称,作者,价格,年份WITHBAS(SELECT 阅读全文
posted @ 2014-01-29 13:39 pnljs 阅读(4821) 评论(0) 推荐(0) 编辑
摘要: privatestringGetCanUseName(stringnewName,stringoldName,intnum){if(!File.Exists(newName)){returnnewName;}else{//存在stringext=Path.GetExtension(oldName);stringnameInfo=oldName.Replace(ext,"");returnGetCanUseName(nameInfo+"_"+(++num)+ext,oldName,++num);}}privatevoidbutton1_Click(obje 阅读全文
posted @ 2014-01-23 14:18 pnljs 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页