Beispiel #1
0
        public QueryEntityList GetAllTypes <T, U>(Expression <Func <T, U> > expression)
        {
            var v = new ReferanceAllTypes(typeof(T));

            v.Visit(expression);
            QueryEntitiy QueryItem = null;
            var          listt     = new QueryEntityList();

            for (int i = 0; i < v.Ad.Count; i++)
            {
                try
                {
                    QueryItem = new QueryEntitiy()
                    {
                        EqualType = v.EqualType[i],
                        Type      = new TypeAndValue()
                        {
                            Name  = v.Ad[i],
                            Value = v.Valuee[i].ToString(),
                            Type  = v.type[i]
                        }
                    };
                }
                catch (Exception)
                {
                }

                listt.Data.Add(QueryItem);
            }
            listt.Ad      = v.Ad;
            listt.AndOrOr = v.AndAlsoOrOr;
            return(listt);
        }
Beispiel #2
0
 public COAReferanceDataType GetAllTypes(Expression expression)
 {
     var v = new ReferanceAllTypes();
     v.Visit(expression);
     return v.Datas;
 }