码迷,mamicode.com
首页 >  
搜索关键字:linq to ef    ( 21280个结果
.net资料
.NET开发语言电子资料汇总: Pro LINQ:Language Integrated Query in C# 2008 http://bbs.topsage.com/dispbbs.asp?boardID=121&ID=166647 MS Press - Introducing Microsof...
分类:Web程序   时间:2014-07-22 23:08:53    阅读次数:720
泛型连接数据库
这些天用泛型做了一个数据库的底层,自我感觉很方便,但是功能不是很完善,会继续考虑下去下面给大家分享一下代码1数据库连接的帮助类using System;using System.Collections.Generic;using System.Linq;using System.Text;using...
分类:数据库   时间:2014-05-01 14:07:32    阅读次数:603
吐槽下linq to sql的分页功能
在调试程序的时候发现一个非常奇怪的问题: 用使用linq分页,分页到第二页的时候,第二页里面有第一页里出现的数据,开始还以为是、linq语句写的有问题,调试半天,无解。后来发现是因为没有排序的缘故。 使用这个q.Skip((sc.cpage.GetValueOrDefault() - 1) * .....
分类:数据库   时间:2014-05-01 02:23:38    阅读次数:466
Linq练习
首先在Program.cs的Main()方法下添加如下代码:string[] names = { "heh", "haha", "huahua", "kuku" };1、取得以h开头的名称:(查询语法) var queryResult = from n in names ...
分类:其他好文   时间:2014-04-30 23:02:21    阅读次数:509
EF为什么向我的数据库再次插入已有对象?(ZT)
最近做了个多对多对实体对象,结果发现每次只要增加一个子实体,就会自动添加一个父实体进去,而不管该父实体是否已经存在.找了好久,终于找到这篇文章,照文章内容来看,应该是断开连接导致的.由于实体框架具有状态管理能力,因此当它处理图形时,其实体状态行为并不总是符合你的期望。
分类:数据库   时间:2014-04-30 19:22:31    阅读次数:739
wpf 进度条 下拉
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using System.Threading.Tasks;using...
分类:其他好文   时间:2014-04-30 14:32:24    阅读次数:514
EF Code First 配置的相关内容
I.实体间一对一的关系 添加一个PersonPhoto类,表示用户照片类 1 /// <summary> 2 /// 用户照片类 3 /// </summary> 4 public class PersonPhoto 5 { 6 [Key] 7 public ...
分类:其他好文   时间:2014-04-29 13:52:18    阅读次数:549
Silverlight学习(四) domainservice动态多条件查询
Silverlight+EF 的动态多条件查询
分类:Web程序   时间:2014-04-29 11:41:46    阅读次数:348
事件与委托例子
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using Sys...
分类:其他好文   时间:2014-04-29 09:25:47    阅读次数:415
C#-访问轰炸机,新建进程,结束进程...(ConsoleApp)---ShinePans
program.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Tst { class Program { static void Main(string[] arg...
分类:移动开发   时间:2014-04-27 21:35:59    阅读次数:467
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!