Пример #1
0
                public virtual Lfx.Types.OperationResult DesactivarRegistros(Lbl.ListaIds codigos)
                {
                        System.Data.IDbTransaction Trans = this.Connection.BeginTransaction();

                        qGen.Select SelElementos = new qGen.Select(this.AtributoDatos.TablaDatos);
                        SelElementos.WhereClause = new qGen.Where(this.AtributoDatos.CampoId, qGen.ComparisonOperators.In, codigos.ToArray());

                        System.Data.DataTable TablaElementos = this.Connection.Select(SelElementos);
                        foreach (System.Data.DataRow RegElem in TablaElementos.Rows) {
                                Lbl.IElementoDeDatos Elem = Lbl.Instanciador.Instanciar(this.ElementoTipo, this.Connection, (Lfx.Data.Row)RegElem);
                                if (Elem is Lbl.IEstadosEstandar)
                                        ((Lbl.IEstadosEstandar)(Elem)).Activar(false);
                        }
                        Trans.Commit();

                        return new Lfx.Types.SuccessOperationResult();
                }