1、查询Student表中的所有记录的Sname、Ssex和Class列。selectsname,ssex,classfromstudentLinq:fromsinStudentsselectnew{s.SNAME,s.SSEX,s.CLASS}Lambda:Students.Select(s=>n...
分类:
数据库 时间:
2014-08-20 16:08:52
阅读次数:
282
具体实现过程,主要修改了以下几个地方:第一:角色和用户类中需要修改成SecurityStrategy的方式:具体代码MySecurityRole:using System;using System.Collections.Generic;using System.Linq;using System....
分类:
其他好文 时间:
2014-08-20 15:59:32
阅读次数:
158
老老实实学WCF第二篇 配置WCF在上一篇中,我们在一个控制台应用程序中编写了一个简单的WCF服务并承载了它。先回顾一下服务端的代码:[csharp]view plaincopyusingSystem;usingSystem.Collections.Generic;usingSystem.Linq;...
分类:
其他好文 时间:
2014-08-20 11:45:36
阅读次数:
204
最常用的字符实体
Character Entities
显示
说明
实体名称
实体编号
半方大的空白
 
 
全方大的空白
 
 
不断行的空白格
 
小于
<
<
>
大于
>...
分类:
其他好文 时间:
2014-08-19 16:43:10
阅读次数:
939
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.IO;using System.Xml;namespace 六月版.客户.网站.Models{ publi...
分类:
其他好文 时间:
2014-08-19 16:25:44
阅读次数:
239
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace MyDelegate{ class Program { static void Main...
分类:
其他好文 时间:
2014-08-19 15:53:55
阅读次数:
155
mb_convert_encoding("人人", "UTF-8", "HTML-ENTITIES");
分类:
Web程序 时间:
2014-08-19 14:13:44
阅读次数:
177
我们在DAL对方法进行封装 public void Delete(T entity) { db.GetTable().DeleteOnSubmit(entity); db.SubmitChanges(); ...
分类:
数据库 时间:
2014-08-18 20:08:52
阅读次数:
878
简单的数组知识代码及注释讲解
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace Array类
{
class Program
{
static void Main(string[]...
分类:
其他好文 时间:
2014-08-18 18:40:12
阅读次数:
237
Json.Net是.net中的一种流行的高性能的JSON框架。特点灵活的JSON序列化转化.net对象为JSON字符串。和把JSON字符串转换为.net对象。手动读写JSON的Linq to JSON比.net内置的JSON序列化程序更高的性能和速度。便于读写的JSON从XML中读取或写入JSON支...
分类:
Web程序 时间:
2014-08-18 18:15:52
阅读次数:
223