一,Linq to EF using System;using
System.Runtime.CompilerServices;using System.Linq;using System.Data; namespace
EntityframeworkSQL{ class Program { sta...
分类:
数据库 时间:
2014-07-22 23:00:53
阅读次数:
553
using System;using System.Collections.Generic;using
System.IO;using System.Linq;using System.Text;using
System.Threading.Tasks;namespace 读文件案例{ cla...
分类:
其他好文 时间:
2014-07-22 22:59:55
阅读次数:
241
界面很简单//玩家类using System;using
System.Collections.Generic;using System.Linq;using System.Text;using
System.Threading.Tasks;namespace 猜拳游戏{ /// //...
分类:
其他好文 时间:
2014-05-02 12:04:15
阅读次数:
292
usingSystem;
usingSystem.Collections.Generic;
usingSystem.IO;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
namespace读文件案例
{
classProgram
{
staticvoidMain(string[]args)
{
Console.WriteLine("请输入文件名");
stringfileName=Console.Read..
分类:
其他好文 时间:
2014-05-02 04:00:58
阅读次数:
289
C#冒泡排序,转载自:http://bbs.it-home.org/forum-net-2.html不多解析自己看去吧using
System;using System.Collections.Generic;using System.Linq;using
System.Text;namespace...
分类:
其他好文 时间:
2014-05-01 20:17:35
阅读次数:
348
1.标准查询符
在C#3.0之后微软对集合进行了非常大的改造,使用了查询符进行集合的查询,这一切都来自.NetFramework 对Lambda表达式的支持。标准查询符,一共有两种类型是支持泛型和不支持泛型的,因为引入泛型的目的在于写出公用的代码,避免代码累赘。
注意,除非赋值给变量的类型是一眼就能看出来的,否则就应该只有在声明类型的时候指定隐式类型的变量(var)。
在System...
分类:
其他好文 时间:
2014-05-01 17:43:22
阅读次数:
487
using System;using System.Collections;using
System.Configuration;using System.Data;using System.Linq;using System.Web;using
System.Web.Security;using ...
分类:
其他好文 时间:
2014-05-01 13:25:21
阅读次数:
380
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择.
代码如下:using System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Thre...
分类:
其他好文 时间:
2014-05-01 08:41:35
阅读次数:
340
我采用Database First,用Sql很容易就可以做到对一个表进行压缩。如以下:
CREATE TABLE [dbo].[Entities](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Name] [nvarchar](max) NULL,
Primary Key Clustered ([Id] ASC) WITH (DATA_...
分类:
数据库 时间:
2014-04-30 22:23:39
阅读次数:
436
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LinqToEntity
{
class Program
{
static void Main(string[] args)
{
//...
分类:
其他好文 时间:
2014-04-29 13:16:21
阅读次数:
574