04 2015 档案
摘要:parentid是1就是id为1的公司的子公司如图 查询出所有的信息后 由于我要呈现的是parentName 不是parentId所以想问下SQL语句怎么写 谢谢啦~~:)解法:SELECT sub.orgName AS 公司名, main.orgName AS 父公司名FROM 表名 main ...
阅读全文
摘要:As a response for customer's question, I decided to write about using Like Operator in Linq to SQL queries. Starting from a simple query from Northwin
阅读全文
摘要:代码下载:http://files.cnblogs.com/n-pei/mvcfileupload.zip 最近因为TeamVideo需要用到视频和图片上传功能,所以试着Google了很多资料,和大家分享下。 1.最基本的文件上传。 在View界面通过Form把数据POST到控制端(Controll
阅读全文
摘要:#region 半角转换为全角 /// <summary> /// 半角转换为全角 ////转全角的函数(SBC case) ///任意字符串 ///全角空格为12288,半角空格为32 ///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 /// </s
阅读全文
摘要:Suppose you have a tblRoom and tblUserInfo. Now, you need to select all the rooms regardless of whether the room has user information or not. This cal
阅读全文
摘要:linq to sql 实现左(右)连接,那个方法是对的var query2 = from tb0 in db.table_0 join tb1 in db.table_1 on table_0.关联键 equals table_1.关联键 into all from tb2 in all.Defa
阅读全文
摘要:本节的主要内容:1、通过代理类的方式调用服务操作。2、通过通道的方式调用服务操作。3、代码下载 一、通过代理类的方式调用服务操作(两种方式添加代理类) 1.手动编写代理类,如下: 客户端契约: using System; using System.Collections.Generic; using
阅读全文
摘要:服务端 1.新建空白解决方案,然后再空白解决方案中新建:WCF服务应用程序。建完后如图: 2.删掉自动生成的IService1.cs和Service.svc并添加WCF服务文件StudentService.svc,VS会自动生成IStudentService.cs 在添加一个Student类,如图:
阅读全文
摘要:Team Foundation Server 2012序列号或MSDN版本 BVGTF-T7MVR-TP46H-9Q97G-XBXRBVS2012注册码亲测成功。我的是旗舰版...YKCW6-BPFPF-BT8C9-7DCTH-QXGWCRBCXF-CVBGR-382MK-DFHJ4-C69G8
阅读全文