文章分类 - .NET
摘要:1.配置方式:NLog.config <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <!--${basedir}-->
        阅读全文
            
                posted @ 2016-12-06 17:45  
江境纣州
    
            
        
摘要:using log4net; using log4net.Appender; using log4net.Core; using System; using System.Collections.Generic; using System.IO; using System.Linq; using S
        阅读全文
            
                posted @ 2016-12-06 17:44  
江境纣州
    
            
        
摘要:/// <summary> /// 是否是内网 /// </summary> /// <returns></returns> public bool IsInnerIp(string ipAddress) { /** 私有IP:A类 10.0.0.0-10.255.255.255 B类 172.16
        阅读全文
            
                posted @ 2016-12-06 17:44  
江境纣州
    
            
        
摘要:注意点:SqlBulkCopy是根据index来插入数据的,所以要实体类字段顺序和数据库字段顺序一致。也可以用ColumnMapping一一映射。 1、表结构 ID uniqueidentifier Unchecked MonthlyInstitutionID uniqueidentifier Un
        阅读全文
            
                posted @ 2016-12-06 17:41  
江境纣州
    
            
        
摘要:摘抄自http://www.cnblogs.com/comsokey/p/MEF1.html 一、什么是MEF MEF(Managed Extensibility Framework)是一个用于创建可扩展的轻型应用程序的库。应用程序开发人员可利用该库发现并使用扩展,而无需进行配置。扩展开发人员还可以
        阅读全文
            
                posted @ 2016-12-06 17:40  
江境纣州
    
            
        
摘要:http://www.cnblogs.com/kissdodog/archive/2013/05/07/3064895.html 第三方开源代码,但是没有过期释放缓存和依赖。 public interface IMemory<P, R> { bool HasResultFor(P val); R R
        阅读全文
            
                posted @ 2016-12-06 17:40  
江境纣州
    
            
        
摘要:using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Infras
        阅读全文
            
                posted @ 2016-12-06 17:39  
江境纣州
    
            
        
摘要:namespace MIS.User_Mapping.Contract.BLL { public class BaseBussiness : IDisposable { #region EF private BaseDBAction<int> dbAction = null; /// <summar
        阅读全文
            
                posted @ 2016-12-06 17:39  
江境纣州
    
            
        
摘要:namespace MIS.User_Mapping.Wcf.Shared { public class BaseDBAction<TID> where TID:struct { private BaseDBContext dbContext = null; public BaseDBAction(
        阅读全文
            
                posted @ 2016-12-06 17:39  
江境纣州
    
            
        
摘要:interface INJob : IJob { ITrigger DefTrigger(); } public class NewBillMonthlySocialJob : INJob { public void Execute(IJobExecutionContext context) { C
        阅读全文
            
                posted @ 2016-12-06 17:38  
江境纣州
    
            
        
摘要:System.Web System.Web.Extensions using System.Web.Script.Serialization; public class SerializerUtil { #region json public static string SerializeJson(
        阅读全文
            
                posted @ 2016-12-06 17:38  
江境纣州
    
            
        
摘要:转载自http://blog.csdn.net/educast/article/details/7328106 using System; using System.Collections; using System.Collections.Generic; using System.Collect
        阅读全文
            
                posted @ 2016-12-06 17:35  
江境纣州
    
            
        
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using System.Reflection; using System.Collect
        阅读全文
            
                posted @ 2016-12-06 17:34  
江境纣州
    
            
        
摘要:参考自http://www.cnblogs.com/kissdodog/archive/2013/02/06/2906677.html 一、Http响应报文:响应行+响应头+响应体 1、响应行:主要是响应状态码 1XX:服务器已经接受到客户端的请求,客户端可以继续发送请求。 2XX:服务器已经成功接
        阅读全文
            
                posted @ 2016-11-28 14:30  
江境纣州
    
            
        
摘要:一、HttpRequest的作用 HttpRequest的作用是能令Asp.Net读到客户端发送的Http值。比如表单、URL、Cookie传递过来的参数。 1、Headers:报文头 HttpRequest request = System.Web.HttpContext.Current.Requ
        阅读全文
            
                posted @ 2016-11-28 12:05  
江境纣州
    
            
        
摘要:1、utf-8:中文三个字节,英文一个字节。 2、GBK:中英文都是两个字节。 字符串都是unicode码,包括英文,汉字...其他字符 unicode可以被转化为字节(byte),如何转换呢,就通过gbk、utf-8、gb2312等编码方式。当把字节转换回字符串的时候,也要用相应的编码方式进行转换
        阅读全文
            
                posted @ 2016-11-28 12:02  
江境纣州
    
            
        
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号