码迷,mamicode.com
首页 >  
搜索关键字:linq to entities    ( 7131个结果
Ado.Net 视图数据模型 空Code First
using System; using System.Data.Entity; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; public partial class DemoDbContext : Db... ...
分类:Web程序   时间:2019-07-10 11:16:44    阅读次数:152
.net lambad表达式操作数据库
里主要是将数据库中的常用操作用LAMBDA表达式重新表示了下,用法不多,但相对较常用,等有时间了还会扩展,并将查询语句及LINQ到时也一并重新整理下: 1.select语句:books.Select(p=>new { p.Title, p.UnitPrice, p.Author});//需用匿名方式 ...
分类:数据库   时间:2019-07-10 11:03:49    阅读次数:177
SqlHelper(基础)
using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Text;using System.Threading ...
分类:数据库   时间:2019-07-09 19:21:37    阅读次数:139
kafka 创建topic 并使用java/.net 连接
创建 topic javatest bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic javatest --partitions 3 --replication-factor 1 java 连接:https: ...
分类:编程语言   时间:2019-07-08 19:29:05    阅读次数:502
linq 大数据 sql 查询及分页优化
前提: 需要nuget PredicateLib 0.0.5; SqlServer 2008R2 (建议安装 64 位); .net 4.5 或以上; 当前电脑配置: I7 4核 3.6GHZ,8G 内存 (办公电脑 ,win10 64位) 描述: 在实际项目中我们会遇到多个表关联查询数据,并进行分 ...
分类:数据库   时间:2019-07-08 12:03:48    阅读次数:222
目录树加载并绑定右键点击事件
1 using System.Collections; 2 using System.Drawing; 3 using System.IO; 4 using System.Linq; 5 using System.Windows.Forms; 6 7 namespace menuTreeWITHri... ...
分类:其他好文   时间:2019-07-07 14:31:16    阅读次数:118
C# Linq 交集、并集、差集、去重
C# Linq 交集、并集、差集、去重using System.Linq; List<string> ListA = new List<string>(); List<string> ListB = new List<string>(); List<string> ListResult = new  ...
分类:Windows程序   时间:2019-07-05 12:24:03    阅读次数:133
3-实体数据模型与LINQ-分组
分组group子句进一步根据指定条件将LINQ查询最后获取的数据进行分组,以特定结构呈现应用程序需要的结构,这是除了select之外,另一个可以以合乎语法地结束LINQ语句的子句。分组通过一个指定的key返回分组化的数据内容,相关语句有两种:1.group-by 2.group-by-into和前面 ...
分类:其他好文   时间:2019-07-04 16:01:57    阅读次数:118
C#字符串和16进制字符串之间的转换
将字符串编码成 16进制 字符串表示: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net; namespace ConsoleApplication1{ ...
分类:Windows程序   时间:2019-07-04 15:57:23    阅读次数:154
C#变量实例,信用卡消费情况
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace Demo2 8 { ... ...
分类:Windows程序   时间:2019-07-04 11:08:56    阅读次数:163
7131条   上一页 1 ... 48 49 50 51 52 ... 714 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!