This commit is contained in:
sunkaixuan 2017-07-12 01:45:39 +08:00
parent 5c4ec2e54a
commit b566a8e1c2
2 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ namespace SqlSugar
}, (cm, key) =>
{
string sql = "select * from " + tableName + " limit 0,1";
string sql = "PRAGMA table_info(" + tableName + ")";
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false;
using (DbDataReader reader = (SqliteDataReader)this.Context.Ado.GetDataReader(sql))