public void TestBulkInsert() { var query = _dbConnection.GetList <TB_ROLE_BUTTON>("where role_id=1"); int count = _dbConnection.ExecuteNonQuery("delete tb_role_button where role_id=1"); count = _dbConnection.Add <TB_ROLE_BUTTON>(query); }
public int Add(User user) { return(_connection.Add(user)); }
public int Add <T>(T model) { return(_dbConnection.Add <T>(model)); }