一,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
ASP.NET系统中Entity Framework导致数据并发错误的原因分析与架构讨论...
分类:
其他好文 时间:
2014-05-01 22:16:57
阅读次数:
382
DataVeryLite 是基于.net
4.0的数据库持久化ORM框架.目前支持的数据库有Sqlserver,Mysql,Oracle,Db2,PostgreSql,Sqlite和Access.最好先阅读DataVeryLite入门教程(一)
配置篇,然后再阅读本篇。如果你觉得麻烦也可以跳过。En...
分类:
其他好文 时间:
2014-05-01 20:55:05
阅读次数:
456
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
package com.rgy.entity;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Bo...
分类:
编程语言 时间:
2014-05-01 17:24:12
阅读次数:
411
今天写的特别简单的代码,大体是一个模式选择,从控制台读入一个数,然后做出相应的选择.
代码如下:using System;using System.Collections.Generic;using System.Linq;using
System.Text;using System.Thre...
分类:
其他好文 时间:
2014-05-01 08:41:35
阅读次数:
340
这是微软官方SignalR 2.0教程Getting Started with Entity
Framework 6 Code First using MVC 5
系列的翻译,这里是第四篇:MVC程序中实体框架的连接恢复和命令拦截原文:Connection Resiliency and Comman...
分类:
Web程序 时间:
2014-05-01 05:11:54
阅读次数:
612
我采用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