Example #1
0
        /// <summary>
        /// Recupera os valores adicionais.
        /// </summary>
        /// <param name="record"></param>
        /// <param name="mode"></param>
        /// <returns></returns>
        public override IEnumerable <string> Bind(Colosoft.Query.IRecord record, Colosoft.Query.BindStrategyMode mode)
        {
            if (record.Descriptor.Contains("Tipo"))
            {
                var tipoSetor = (Glass.Data.Model.TipoSetor)(int) record["Tipo"];

                if (mode == Colosoft.Query.BindStrategyMode.All ||
                    (tipoSetor != TipoSetor))
                {
                    TipoSetor = tipoSetor;
                    yield return("TipoSetor");
                }
            }

            foreach (var i in base.Bind(record, mode))
            {
                yield return(i);
            }
        }
Example #2
0
        /// <summary>
        /// Recupera os valores adicionais.
        /// </summary>
        /// <param name="record"></param>
        /// <param name="mode"></param>
        /// <returns></returns>
        public override IEnumerable <string> Bind(Colosoft.Query.IRecord record, Colosoft.Query.BindStrategyMode mode)
        {
            if (record.Descriptor.Contains("Grupo"))
            {
                string grupo = record["Grupo"];

                if (mode == Colosoft.Query.BindStrategyMode.All ||
                    (grupo != Grupo))
                {
                    Grupo = grupo;
                    yield return("Grupo");
                }
            }

            foreach (var i in base.Bind(record, mode))
            {
                yield return(i);
            }
        }