public Error.Types Delete()
 {
     Rds.ExecuteNonQuery(
         transactional: true,
         statements: new SqlStatement[]
     {
         Rds.DeleteHealths(
             where : Rds.HealthsWhere().HealthId(HealthId))
     });
     return(Error.Types.None);
 }
Esempio n. 2
0
        public Error.Types Delete()
        {
            var statements = new List <SqlStatement>();

            statements.AddRange(new List <SqlStatement>
            {
                Rds.DeleteHealths(
                    where : Rds.HealthsWhere().HealthId(HealthId))
            });
            Rds.ExecuteNonQuery(
                transactional: true,
                statements: statements.ToArray());
            return(Error.Types.None);
        }
Esempio n. 3
0
        public Error.Types Delete()
        {
            var statements = new List <SqlStatement>();

            var where = Rds.HealthsWhere().HealthId(HealthId);
            statements.AddRange(new List <SqlStatement>
            {
                Rds.DeleteHealths(where : where)
            });
            var response = Rds.ExecuteScalar_response(
                transactional: true,
                statements: statements.ToArray());

            return(Error.Types.None);
        }