コード例 #1
0
ファイル: LinqExtensions.cs プロジェクト: angew74/GestionePEC
        internal static EntitaType TryParseEntitaType(string p)
        {
            EntitaType entita = EntitaType.UNKNOWN;

            Enum.TryParse(p, out entita);
            return(entita);
        }
コード例 #2
0
        public ResultList <RubricaContatti> GetContattiByParams(EntitaType tEnt, SendMail.Model.FastIndexedAttributes attribute, string pars, int da, int per, bool withEntita, bool withIPA)
        {
            List <EntitaType> l = new List <EntitaType>();

            l.Add(tEnt);
            Dictionary <FastIndexedAttributes, List <string> > d = new Dictionary <FastIndexedAttributes, List <string> >();
            List <string> ltemp = new List <string>();

            ltemp.Add(pars);
            d.Add(attribute, ltemp);
            return(this.GetContattiByParams(l, d, da, per, withEntita, withIPA));
        }
コード例 #3
0
        public ResultList <RubricaContatti> GetContattiByParams(EntitaType tEnt, Dictionary <SendMail.Model.FastIndexedAttributes, string> pars, int da, int per, bool withEntita, bool withIPA)
        {
            List <EntitaType> l = new List <EntitaType>();

            l.Add(tEnt);
            Dictionary <FastIndexedAttributes, List <string> > d = new Dictionary <FastIndexedAttributes, List <string> >();

            foreach (KeyValuePair <SendMail.Model.FastIndexedAttributes, string> v in pars)
            {
                List <string> ltemp = new List <string>();
                ltemp.Add(v.Value);
                d.Add(v.Key, ltemp);
            }
            return(this.GetContattiByParams(l, d, da, per, withEntita, withIPA));
        }