This commit is contained in:
sunkaixuan 2018-02-08 18:03:05 +08:00
parent 41101b0324
commit 0b8ac9a200
2 changed files with 3 additions and 0 deletions

View File

@ -219,6 +219,9 @@ namespace SqlSugar
}
}
string sql = GetCreateTableSql(tableName, columns);
if (!isCreatePrimaryKey) {
sql = sql.Replace("PRIMARY KEY AUTOINCREMENT","").Replace("PRIMARY KEY", "");
}
this.Context.Ado.ExecuteCommand(sql);
return true;
}