看来有的人还是对schema的真正含义不太理解,如今我再次整理了一下,希望对大家有所帮助。我们先来看一下他们的定义:A schema is a collection of database objects (used by a user.). Schema objects are the logic...
分类:
数据库 时间:
2014-07-07 21:49:52
阅读次数:
193
linq to Entity Framework 中left join 的使用,Linq 中使用Into 语句和不使用Into 语句的区别, Linq DefaultIfEmpty 函数的作用
分类:
其他好文 时间:
2014-07-07 19:31:23
阅读次数:
296
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-07-07 14:54:18
阅读次数:
219
1.当希望方法返回多个值时,声明out方法很有用。这样使方法可以有选择地返回值。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 求数组最大最小值{ class...
分类:
其他好文 时间:
2014-07-07 14:53:45
阅读次数:
190
1 public IQueryable LoadPageuserInfos(int pageSize, int pageIndex, out int total, 2 Func wherelambda, Func orderbyLambda, bool isasc) 3 ...
分类:
其他好文 时间:
2014-07-07 14:13:08
阅读次数:
188
公司项目中的报表多是用水晶报表生成的。项目中水晶报表的填充数据源都是使用的DataSet或DataTable(这样很麻烦、很费时的,我暗暗想。)。我负责的模块也有大量的报表,想到的第一件事是使用.NET Objects作为数据源生成报表(详见水晶报表填充.Net Objects数据源)。奈何项目开发...
分类:
其他好文 时间:
2014-07-07 13:09:02
阅读次数:
171
linq对数据的查询方式的表达形式主要有两种:var demo =from p in pList where p.id=*** select p;var demo =pList.where(p=>p.id=***) select p;以上是linq最近常见的两种表达形式。linq支持多种操...
分类:
其他好文 时间:
2014-07-03 11:57:38
阅读次数:
280
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;namespace BitMap{ /// /// Image 的摘要说明 ...
分类:
其他好文 时间:
2014-07-03 11:07:45
阅读次数:
154
在上一篇我们在宏观概要上对DAL层进行了封装与抽象。我们的目的主要有两个:第一,解除BLL层对DAL层的依赖,这一点我们通过定义接口做到了;第二,使我们的DAL层能够支持一切数据访问技术,如Ado.net,EF,linq To Sql,这一点我们实现的不是很完美,仍有很大的改进空间,本文将加以改进。...
分类:
其他好文 时间:
2014-06-30 13:46:37
阅读次数:
324
上次我们说到了linq对数组内容的检索,自.net2.0以后,泛型成了很常见的一种应用技术,linq对泛型的检索也提供了完善的支持如对list类型的支持,范例如下: class Program { static void Main(string[] args) { List samplebooks ...
分类:
其他好文 时间:
2014-06-30 11:30:12
阅读次数:
125