解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头
authored at
2018-05-15 21:21:05
X
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewLife.Net;
namespace NewLife.Http
{
/// <summary>Http服务器</summary>
[DisplayName("Http服务器")]
public class HttpServer : NetServer
{
/// <summary>实例化</summary>
public HttpServer()
{
Name = "Http";
Port = 80;
ProtocolType = NetType.Http;
// Http封包协议
//SessionPacket = new PacketFactory { Offset = -1 };
}
}
}
|