记录LINQ学习过程。 概要 LINQ是一种“语言集成”的查询表达式,使用LINQ可以智能提示和进行类型检查。C#里可以编写的LINQ查询有SQL数据库、XML文档、ADO.NET数据集、支持IEnumerable和IEnumerable的对象。使用LINQ,可以简单对数据源进行分组、排序、筛选。有 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-22 22:26:50   
                                阅读次数:
104
                             
                    
                        
                            
                            
                                实体类 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EmpPrj.Entity { public class y_EmployeeEntity { pu ...
                            
                            
                                分类:
Web程序   时间:
2020-02-22 21:43:00   
                                阅读次数:
97
                             
                    
                        
                            
                            
                                    C#压缩图片不失真 using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Linq; usin ...
                            
                            
                         
                    
                        
                            
                            
                                业务场景:客户需要根据过滤条件的不同显示不同的列。如下方式可以实现动态的列名。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using Kingdee.BOS.Core.Repor ...
                            
                            
                                分类:
其他好文   时间:
2020-02-18 20:42:55   
                                阅读次数:
99
                             
                    
                        
                            
                            
                                业务场景:保存时,检查上游的销售出库单数量,和发货通知单数量是否一致,不一致时提示信息,点是则保存,点否不保存。 using System;using System.Collections.Generic;using System.Linq;using System.Text;using Kingd ...
                            
                            
                                分类:
其他好文   时间:
2020-02-18 20:42:42   
                                阅读次数:
127
                             
                    
                        
                            
                            
                                    一、类 语法 [public] class 类名 { 字段; 属性; 方法; } 类的定义是以关键字 class 开始,后跟类的名称。类的主体,包含在一对花括号内。下面是类定义的一般形式: <access specifier> class class_name { // member variabl ...
                            
                            
                         
                    
                        
                            
                            
                                1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _13_out参数练 ...
                            
                            
                                分类:
其他好文   时间:
2020-02-17 20:18:50   
                                阅读次数:
78
                             
                    
                        
                            
                            
                                C#中类的编程规范,或许这是一个好习惯。 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Fra ...
                            
                            
                         
                    
                        
                            
                            
                                适用于不想使用log4net等第三方的Log工具的LogHelper。正规的还是要使用《C# 工具类LogHelper》的这种做法。 using System; using System.Collections.Generic; using System.IO; using System.Linq; ...
                            
                            
                         
                    
                        
                            
                            
                                1 [Serializable] 2 public class Product 3 { 4 public Product() 5 { 6 7 8 } 9 10 public Product(string id,string pname,int num,double price) 11 { 12 th ...
                            
                            
                                分类:
其他好文   时间:
2020-02-15 09:53:38   
                                阅读次数:
69