码迷,mamicode.com
首页 >  
搜索关键字:linq to ef    ( 21280个结果
后台动态生成静态select标签的option项
以下为代码示例:全局变量: List CategoryList = PCS.DAL.EF.Repository.GetInstance().GetCategoryList(); List V_BTUser_Category = PCS.DAL.EF.Repository.GetInstance()....
分类:其他好文   时间:2014-05-24 05:38:09    阅读次数:303
Lambda 表达式(C# 编程指南)
Lambda 表达式是一种可用于创建委托或表达式目录树类型的匿名函数。通过使用 lambda 表达式,可以写入可作为参数传递或作为函数调用值返回的本地函数。 Lambda 表达式对于编写 LINQ 查询表达式特别有用。若要创建 Lambda 表达式,需要在 Lambda 运算符 => 左侧指定输入参...
分类:其他好文   时间:2014-05-24 05:25:47    阅读次数:168
Loader for loading embedded assemblies z
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;namespace...
分类:其他好文   时间:2014-05-23 10:59:24    阅读次数:223
Mediator模式
参考资料《大话设计模式》Mediator(中介者)模式:使各个对象不需要显式的相互调用,从而使其耦合松散。using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ds_me...
分类:其他好文   时间:2014-05-23 10:13:17    阅读次数:331
C#多线程的简单例子
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;//using System.Threading.Tasks;using System.I...
分类:编程语言   时间:2014-05-19 20:01:31    阅读次数:258
实体框架 (EF) 入门 => 四、CodeFirst 枚举支持
当使用 Code First 开发时,通常是从编写用来定义概念(域)模型的 .NET Framework 类开始。插入记录没有为 Budget 赋值。数值类型默认值为0,数据库中都为not null,如果不设置Requird特性,可以不赋值,保存时自动使用默认值。默认值是保存时EF在初始化类时赋给的...
分类:其他好文   时间:2014-05-19 19:59:32    阅读次数:358
实体框架 (EF) 入门 => 五、连接和模型
public class BloggingContext : DbContext { public BloggingContext() : base("name=BloggingCompactDatabase") { } } 使用此形式可以明确要求在配置文件中查找连接字符串。如果未找到具有给定名称的...
分类:其他好文   时间:2014-05-19 17:42:25    阅读次数:239
NuGet 无法连接到远程服务器-解决方法
一、Entity Framework以下简称EF安装EF4.3的步骤是首先安装VS扩展 NuGet,然后再使用NuGet安装EF程序包安装完NuGet就可以安装EF了,有两种方式可以安装EF:1.使用命令install-package EntityFramework -Pre但出现如下错误:2.使用...
分类:其他好文   时间:2014-05-19 17:20:00    阅读次数:6892
winform小程序------数字猜大小(经典线程和自动生成控件的小例子)
一:上图二:相关代码using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Sys...
分类:编程语言   时间:2014-05-18 01:51:47    阅读次数:407
Linux之Kill进程的N种方法
常规篇:首先,用ps查看进程,方法如下:$ ps -ef……smx 1822 1 0 11:38 ? 00:00:49 gnome-terminalsmx 1823 1822 0 11:38 ? 00:00:00 gnome-pty-helpersmx 1824 1822 0 11:38 pts/0...
分类:系统相关   时间:2014-05-17 23:07:45    阅读次数:614
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!