Exemple #1
0
 public Error.Types Delete()
 {
     Rds.ExecuteNonQuery(
         transactional: true,
         statements: new SqlStatement[]
     {
         Rds.DeleteExportSettings(
             where : Rds.ExportSettingsWhere().ExportSettingId(ExportSettingId))
     });
     return(Error.Types.None);
 }
 public ErrorData Delete(Context context)
 {
     var statements = new List<SqlStatement>();
     var where = Rds.ExportSettingsWhere().ExportSettingId(ExportSettingId);
     statements.AddRange(new List<SqlStatement>
     {
         Rds.DeleteExportSettings(where: where)
     });
     var response = Rds.ExecuteScalar_response(
         context: context,
         transactional: true,
         statements: statements.ToArray());
     return new ErrorData(type: Error.Types.None);
 }
Exemple #3
0
        public Error.Types Delete()
        {
            var statements = new List <SqlStatement>();

            statements.AddRange(new List <SqlStatement>
            {
                Rds.DeleteExportSettings(
                    where : Rds.ExportSettingsWhere().ExportSettingId(ExportSettingId))
            });
            Rds.ExecuteNonQuery(
                transactional: true,
                statements: statements.ToArray());
            return(Error.Types.None);
        }
Exemple #4
0
        public ErrorData Delete(Context context)
        {
            var statements = new List <SqlStatement>();

            var where = Rds.ExportSettingsWhere().ExportSettingId(ExportSettingId);
            statements.AddRange(new List <SqlStatement>
            {
                Rds.DeleteExportSettings(factory: context, where : where)
            });
            Repository.ExecuteNonQuery(
                context: context,
                transactional: true,
                statements: statements.ToArray());
            return(new ErrorData(type: Error.Types.None));
        }