Esempio n. 1
0
 public DatabaseTable <T> Update(string tableName, Expression <Func <T, string[]> > setColumn, object[] values)
 {
     m_command = new UpdateCommand <T>(m_connection, typeof(T), tableName);
     (m_command as UpdateCommand <T>).Set(setColumn, values);
     return(this);
 }
Esempio n. 2
0
 public DatabaseTable <T> Insert(string tableName, T obj)
 {
     m_command = new InsertCommand <T>(m_connection, typeof(T), obj, tableName);
     ExecuteCommand();
     return(this);
 }
Esempio n. 3
0
 public DatabaseTable <T> Drop(string tableName = null)
 {
     m_command = new DropTableCommand(m_connection, typeof(T), tableName);
     ExecuteCommand();
     return(this);
 }
Esempio n. 4
0
 public DatabaseTable <T> Select(string tableName)
 {
     m_command = new SelectCommand(m_connection, typeof(T), tableName);
     return(this);
 }
Esempio n. 5
0
 public DatabaseTable <T> Create(string tableName)
 {
     m_command = new CreateTableCommand(m_connection, typeof(T), tableName);
     ExecuteCommand();
     return(this);
 }