1. 使用代码方式进行组件注册【依赖服务类】 using System; using System.Collections.Generic; using System.Linq; using System.Text; using CastleDemo.Lib; using Castle.Windso ...
来自森大科技官方博客http://www.cnsendblog.com/index.php/?p=210GPS平台、网站建设、软件开发、系统运维,找森大网络科技!http://cnsendnet.taobao.com 1、法一:常规方法 2、嗯,.NET中所有的sort,compare都支持自定义“ ...
分类:
其他好文 时间:
2019-12-22 18:31:52
阅读次数:
68
一、定义 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; namespace HJ.B ...
分类:
Web程序 时间:
2019-12-22 18:20:36
阅读次数:
90
练习2 对于学员成绩的评测 成绩>=90:A 成绩>=80&&成绩<90:B 成绩>=70&&成绩<80:C 成绩>=60&&成绩<70:D 成绩<60:E 1 using System; 2 using System.Collections.Generic; 3 using System.Linq ...
来自森大科技官方博客http://www.cnsendblog.com/index.php/?p=205GPS平台、网站建设、软件开发、系统运维,找森大网络科技!http://cnsendnet.taobao.com 用Linq从一个集合选取几列得到一个新的集合-可改列名 ...
分类:
其他好文 时间:
2019-12-21 18:57:17
阅读次数:
60
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
简单的Linq&Lamda语法: (1) 简单的查询语句: Linq语法: var data=from a in db.Areas select a ;Lamda语法: var data=db.Areas;sql语法: string sqlStr=" SELECT * FROM Areas "; ( ...
分类:
其他好文 时间:
2019-12-19 21:32:51
阅读次数:
94
在Entity Framework Core 2.0中增加一个很酷的功能:EF.Functions.Like(),最终解析为SQL中的Like语句,以便于在 LINQ 查询中直接调用。 不过Entity Framework 中默认提供了StartsWith、Contains和EndsWith方法用于 ...
分类:
其他好文 时间:
2019-12-19 19:00:48
阅读次数:
106
LINQ: var temp = from p in db.jj_Credentials group p by p.ProfessionID into g select new { g.Key, MaxPrice = g.Max(p => p.CredentialsRankID) }; EF: va ...
分类:
其他好文 时间:
2019-12-19 18:50:52
阅读次数:
80
五分钟重温C#委托,匿名方法,Lambda,泛型委托,表达式树 https://masuit.com/81 曾经新生代,好多都经过漫长的学习,理解,实践才能掌握委托,表达式树这些应用。今天我尝试用简单的方法叙述一下,让大家在五分钟内看完这篇博客 第一分钟:委托 有些教材,博客说到委托都会提到事件,虽 ...