public void commit() { DB.gDb().TransactionCommit(); }
public void begintrans() { DB.gDb().TransactionBegin(); }
public System.Data.DataSet CustomerList() { return(DB.gDb().CreateCommnad().Sql("select * from Customer").Query()); }
public void rollback() { DB.gDb().TransactionRollBack(); }
public int CustomerUpdate2(string c, string s) { return(DB.gDb().CreateCommnad().Sql("UPDATE Customer SET name='" + s + "' where code=" + c).ExecuteNonQuery()); }