Пример #1
0
        protected override void ParamDeletar(QueryStoredProcedure qs, TUR_TurmaDisciplinaTerritorio entity)
        {
            base.ParamDeletar(qs, entity);

            Param               = qs.NewParameter();
            Param.DbType        = DbType.Byte;
            Param.ParameterName = "@tte_situacao";
            Param.Size          = 1;
            Param.Value         = entity.tte_situacao;
            qs.Parameters.Add(Param);

            Param               = qs.NewParameter();
            Param.DbType        = DbType.DateTime;
            Param.ParameterName = "@tte_dataAlteracao";

            Param.Value = entity.tte_dataAlteracao;
            qs.Parameters.Add(Param);
        }
Пример #2
0
 public override bool Delete(TUR_TurmaDisciplinaTerritorio entity)
 {
     __STP_DELETE = "NEW_TUR_TurmaDisciplinaTerritorio_UpdateSituacao";
     return(base.Delete(entity));
 }
Пример #3
0
 protected override bool Alterar(TUR_TurmaDisciplinaTerritorio entity)
 {
     __STP_UPDATE = "NEW_TUR_TurmaDisciplinaTerritorio_UPDATE";
     return(base.Alterar(entity));
 }
Пример #4
0
 protected override void ParamAlterar(QueryStoredProcedure qs, TUR_TurmaDisciplinaTerritorio entity)
 {
     entity.tte_dataAlteracao = DateTime.Now;
     base.ParamAlterar(qs, entity);
     qs.Parameters.RemoveAt("@tte_dataCriacao");
 }
Пример #5
0
 protected override void ParamInserir(QuerySelectStoredProcedure qs, TUR_TurmaDisciplinaTerritorio entity)
 {
     entity.tte_dataCriacao = entity.tte_dataAlteracao = DateTime.Now;
     base.ParamInserir(qs, entity);
 }