Beispiel #1
0
 /// <summary>
 /// Use this contructor inorder to execute connected command
 /// </summary>
 /// <param name="sql"></param>
 /// <param name="sqlType"></param>
 public CommandVirtualization(string sql, SqlType sqlType)
 {
     Parameters = new ParamsVirtulization();
     m_sql      = sql;
     m_sqlType  = sqlType;
     NewColumns = new ColumnVirtualization();
 }
Beispiel #2
0
 /// <summary>
 /// Use this contructor inorder to execute disconnected command which need only the query without insert, delete and update.
 /// </summary>
 /// <param name="sqlQuery"></param>
 /// <param name="sqlInsert"></param>
 /// <param name="sqlUpdate"></param>
 /// <param name="sqlDelete"></param>
 public CommandVirtualization(string sqlQuery)
 {
     NewColumns = new ColumnVirtualization();
     Parameters = new ParamsVirtulization();
     m_disconnectedSqls.sqlQuery  = sqlQuery;
     m_disconnectedSqls.sqlInsert = null;
     m_disconnectedSqls.sqlUpdate = null;
     m_disconnectedSqls.sqlDelete = null;
 }
Beispiel #3
0
 /// <summary>
 /// Use this constructor to set indexes to table.
 /// </summary>
 /// <param name="indexName"></param>
 public CommandVirtualization(string indexName, bool unique)
 {
     NewIndexes = new IndexesVirtualization(indexName, unique);
     NewColumns = new ColumnVirtualization();
 }
Beispiel #4
0
 /// <summary>
 /// Use this constructor when you want:
 /// 1. To add new columns.
 /// 2. To create table.
 /// </summary>
 public CommandVirtualization()
 {
     NewColumns = new ColumnVirtualization();
 }