Ejemplo n.º 1
0
 public void Log(ReceiveMessage message)
 {
     using (WeixinDataSource source = new WeixinDataSource())
     using (MessageResolver resolver = new MessageResolver(source))
     {
         resolver.SetCommands(AdapterCommand.Insert);
         DataRow row = resolver.NewRow();
         message.AddToDataRow(row);
         row["CreateDate"] = message.CreateTime;
         resolver.UpdateDatabase();
     }
 }
Ejemplo n.º 2
0
 public void Log(ReceiveMessage message)
 {
     using (WeixinDataSource source = new WeixinDataSource())
         using (MessageResolver resolver = new MessageResolver(source))
         {
             resolver.SetCommands(AdapterCommand.Insert);
             DataRow row = resolver.NewRow();
             message.AddToDataRow(row);
             row["CreateDate"] = message.CreateTime;
             resolver.UpdateDatabase();
         }
 }