Exemple #1
0
        private static OrderDetailEntityInfo GetOrderDetailEntityInfo(XElement xe)
        {
            OrderDetailEntityInfo orderDetailEntityInfo = new OrderDetailEntityInfo();

            SetValue(orderDetailEntityInfo, xe);
            orderDetailEntityInfo.Entity          = GetEntityInfo(xe.Element("Entity"));
            orderDetailEntityInfo.QueryExpression = GetQueryExpressionInfo(xe.Element("QueryExpression"));
            return(orderDetailEntityInfo);
        }
Exemple #2
0
        public OrderDetailEntityInfo RegisterOrderDetailEntity(string name)
        {
            int index = this.OrderEntity.OrderDetailEntities.Dictionary[name];
            OrderDetailEntityInfo odei = this.OrderEntity.OrderDetailEntities[index];

            odei.Index            = index;
            odei.ReferencedMember = string.Format("OrderDetailData[{0}]", index);

            if (!string.IsNullOrEmpty(odei.PropertyName))
            {
                string t = odei.PropertyName;
                if (t.IndexOf("Entity.") == 0)
                {
                    t = t.Substring("Entity.".Length);
                }
                this.OrderEntity.Entity.Include.Add(odei.PropertyName, t);
            }
            return(odei);
        }
Exemple #3
0
        private static ObjectList <OrderDetailEntityInfo> GetOrderDetailEntities(XElement xe)
        {
            ObjectList <OrderDetailEntityInfo> list = new ObjectList <OrderDetailEntityInfo>();

            if (xe == null)
            {
                return(list);
            }

            if (xe.Elements("OrderDetailEntity") != null)
            {
                foreach (XElement item in xe.Elements("OrderDetailEntity"))
                {
                    OrderDetailEntityInfo orderDetailEntityInfo = GetOrderDetailEntityInfo(item);
                    list.Add(orderDetailEntityInfo.Name, orderDetailEntityInfo);
                }
            }
            return(list);
        }
Exemple #4
0
 private static OrderDetailEntityInfo GetOrderDetailEntityInfo(XElement xe)
 {
     OrderDetailEntityInfo orderDetailEntityInfo = new OrderDetailEntityInfo();
     SetValue(orderDetailEntityInfo, xe);
     orderDetailEntityInfo.Entity = GetEntityInfo(xe.Element("Entity"));
     orderDetailEntityInfo.QueryExpression = GetQueryExpressionInfo(xe.Element("QueryExpression"));
     return orderDetailEntityInfo;
 }