Esempio n. 1
0
        public void CopyValueFromBlock(XingBlock fromBlock)
        {
            var fields = fromBlock.GetFieldsInfo();

            foreach (string key in fields.Keys)
            {
                XAQueryFieldInfo info = fields[key];
                SetFieldValue(key, info);
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public virtual IDbCommand GetCreateTableCommand(XingBlock block, string tableNamePostfix)
 {
     return(GetCreateTableCommand(block.GetType(), tableNamePostfix));
 }
Esempio n. 4
0
 public abstract IDbCommand GetDropTableCommand(XingBlock block, string tableNamePostfix);