假设数据库中有如下自定义字段:
?...);
this.AddConverter("Content", typeof(ContentPatternConverter));
}
}
4、日志配置文件中添加数据库记录器并引用...
<commandText value="INSERT INTO <em>log</em>4message(datetime,thread,...level,logger,message,Exception,Success,Mobiles,Content) VALUES (@<em>log</em>_date, @thread, @<em>log</em>_level, @logger