Exemplo n.º 1
0
        public void Execute <T>(T entity, dynamic condition = null) where T : class
        {
            var sql = sqlBuilder.Update <T>(
                entity: entity,
                condition: condition);

            sqlExecutor.ExecuteNonQuery(sql);
        }
Exemplo n.º 2
0
 public void Sql(string sql)
 {
     sqlExecutor.ExecuteNonQuery(sql);
 }
Exemplo n.º 3
0
        public void Execute <T>(dynamic condition = null) where T : class
        {
            var sql = sqlBuilder.Delete <T>(condition);

            sqlExecutor.ExecuteNonQuery(sql);
        }