Esempio n. 1
0
 public void Navigate <ToT1>(NavigationField <T, ToT1> nav1)
 {
     this.navigationFields.Add(nav1.WithEntityProperty, nav1);
     this.mapper.AddMapper <ToT1>(new PropertyMapper <ToT1>(nav1.WithEntityProperty, nav1.FromTableKey));
     splitFields.Add(new SplitField()
     {
         Keyword = nav1.SplitOn, Select = string.Empty
     });
 }
Esempio n. 2
0
        public void Navigate <ToT1, ToT2, ToT3, ToT4>(NavigationField <T, ToT1> nav1, NavigationField <T, ToT2> nav2, NavigationField <T, ToT3> nav3, NavigationField <T, ToT4> nav4)
        {
            this.Navigate(nav1, nav2, nav3);

            this.navigationFields.Add(nav4.WithEntityProperty, nav4);
            this.mapper.AddMapper <ToT4>(new PropertyMapper <ToT4>(nav4.WithEntityProperty, nav4.FromTableKey));
            splitFields.Add(new SplitField()
            {
                Keyword = nav4.SplitOn, Select = string.Empty
            });
        }
Esempio n. 3
0
        public void Navigate <ToT1, ToT2, ToT3, ToT4, ToT5, ToT6, ToT7>(NavigationField <T, ToT1> nav1, NavigationField <T, ToT2> nav2, NavigationField <T, ToT3> nav3, NavigationField <T, ToT4> nav4, NavigationField <T, ToT5> nav5, NavigationField <T, ToT6> nav6, NavigationField <T, ToT7> nav7)
        {
            this.Navigate(nav1, nav2, nav3, nav4, nav5, nav6);

            this.navigationFields.Add(nav6.WithEntityProperty, nav7);
            this.mapper.AddMapper <ToT7>(new PropertyMapper <ToT7>(nav7.WithEntityProperty, nav7.FromTableKey));
            splitFields.Add(new SplitField()
            {
                Keyword = nav7.SplitOn, Select = string.Empty
            });
        }
Esempio n. 4
0
        /// <summary>
        /// include field co quan he navigate
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        private bool Include(string field)
        {
            NavigationField f = null;

            if (navigationFields.TryGetValue(field, out f))
            {
                if (!chosenNavigationFields.ContainsKey(field))
                {
                    chosenNavigationFields.Add(field, f);
                }
                return(true);
            }
            return(false);
        }