public Table OpenTable(String tableName) { if (true == this.CheckTable(tableName, this.ConnectParams.Database)) { return(new Table(tableName, this)); } else { VDebug.Error("Table is not exits!"); return(null); } }
public Table Where(Condition condition) { if (condition.Keys.Count == 0) { VDebug.Error("condition is null ,it maybe couse a error!"); } this.whereCondition = " where "; int i = 0; foreach (var key in condition.Keys) { this.whereCondition += key + "='" + condition[key] + "'"; if (condition.Keys.Count - 1 != i) { this.whereCondition += " and "; } i++; } VDebug.Track(this.whereCondition); return(this); }