public void CopyValueFromBlock(XingBlock fromBlock) { var fields = fromBlock.GetFieldsInfo(); foreach (string key in fields.Keys) { XAQueryFieldInfo info = fields[key]; SetFieldValue(key, info); } }
public override IDbCommand GetDropTableCommand(XingBlock block, string tableNamePostfix) { Type type = block.GetType(); string tableName = (tableNamePostfix == null) ? type.Name : $"{type.Name}_{tableNamePostfix}"; string sql = $"Drop Table IF EXISTS {tableName}"; IDbCommand cmd = XingClient.DBProviderFactory.CreateCommand(); cmd.CommandText = sql; return(cmd); }
public virtual IDbCommand GetCreateTableCommand(XingBlock block, string tableNamePostfix) { return(GetCreateTableCommand(block.GetType(), tableNamePostfix)); }
public abstract IDbCommand GetDropTableCommand(XingBlock block, string tableNamePostfix);