posted @ 2019-07-18 17:05
张小帅
阅读(283)
推荐(0)
            
        
        
摘要:        
-- 1、设置-- SET GLOBAL log_output = 'TABLE'; SET GLOBAL general_log = 'ON';-- SET GLOBAL log_output = 'TABLE'; SET GLOBAL general_log = 'OFF'; -- 2、查询SE    
阅读全文
 
        posted @ 2019-07-18 13:42
张小帅
阅读(371)
推荐(0)
 
		
    
        
        
摘要:        
1. 6.0出来了新的语法 Tuple 支付返回多个值 class Demo { public void Run() { var num = Exec(5, 6); Console.WriteLine(num.Item1); //第一个返回值 Console.WriteLine(num.Item2)    
阅读全文
 
        posted @ 2018-08-27 17:29
张小帅
阅读(3665)
推荐(0)
 
		
    
        
        
摘要:        
public int Id { get; set; } = 1;    
阅读全文
 
        posted @ 2017-12-08 18:14
张小帅
阅读(3812)
推荐(1)
 
		
    
        
        
摘要:        
public enum FAnXing { [Description("成功")] Success=0, } ////////////////////////////////////////////////// public static string GetEnumDescription(Enum    
阅读全文
 
        posted @ 2017-09-19 13:42
张小帅
阅读(129)
推荐(0)
 
		
    
        
        
摘要:        
string abc = "123"; Console.WriteLine(nameof(abc));    
阅读全文
 
        posted @ 2017-07-06 20:12
张小帅
阅读(257)
推荐(0)
 
		
    
        
        
摘要:        
/// <summary> /// 消息广播类 /// 此类是线程安全的 /// </summary> public class Messenger { private Dictionary<string, MessengerEvents> _events; private static objec    
阅读全文
 
        posted @ 2017-04-21 09:37
张小帅
阅读(252)
推荐(0)
 
		
    
        
        
摘要:        
private static List<T> ConvertToList<T>(DataTable dt) where T : new() { T t1; Type type = typeof(T); List<T> list = new List<T>(); PropertyInfo[] prop    
阅读全文
 
        posted @ 2017-03-26 17:39
张小帅
阅读(259)
推荐(0)
 
		
    
        
        
摘要:        
redis语法及简易教程http://www.yiibai.com/redis/redis_quick_guide.html    
阅读全文
 
        posted @ 2017-03-01 10:10
张小帅
阅读(127)
推荐(0)
            
        
        
摘要:        
前面我们已经准备成功开启Redis服务,其端口号为6379,接下来我们就看看如何使用C#语言来操作Redis。就如MongoDB一样,要操作Redis服务,自然就需要下载C#的客户端,这里通过Nuget下载了“ServiceStack.Redis”客户端,引入成功之后,就可以使用C#来对Redis服    
阅读全文
 
        posted @ 2017-03-01 10:04
张小帅
阅读(894)
推荐(0)