cmd=$"CREATE INDEX Time ON {this.dbModel.TbThickHeat.TableName} ({nameof(Db_ThickHeat.ID)},{nameof(Db_ThickHeat.Time)})";
cmd=$"CREATE INDEX {this.dbModel.TbThickHeat.TableName}_Time ON {this.dbModel.TbThickHeat.TableName} ({nameof(Db_ThickHeat.ID)},{nameof(Db_ThickHeat.Time)})";
try
{
this.dbModel.sqliteHelper.ExecuteNonQuery(cmd);
this.dbModel.sqliteHelper.ExecuteNonQuery(cmd);
}
catch
{
//如果失败,证明里面已经有了
}
cmd=$"CREATE INDEX Time ON {this.dbModel.TbError.TableName} ({nameof(DB_Error.ID)},{nameof(DB_Error.Time)})";
cmd=$"CREATE INDEX {this.dbModel.TbError.TableName}_Time ON {this.dbModel.TbError.TableName} ({nameof(DB_Error.ID)},{nameof(DB_Error.Time)})";