<add name="adDb" connectionString="Persist Security Info=False;database=ad;server=;PORT=31306;user id=root;pwd=;allow zero datetime=true" providerName="MySql.Data.MySqlClient" />
在连接字符串中 加上datetime=true