Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public int Add(User user)
 {
     return(_connection.Add(user));
 }
Esempio n. 3
0
 public int Add <T>(T model)
 {
     return(_dbConnection.Add <T>(model));
 }