Exemple #1
0
        public static IFetchStrategy <DbSet <T> > BuildFetchStrategy <T>(params string[] includePaths) where T : class
        {
            var fetchStrategy = new GenericFetchStrategy <T>();

            foreach (var path in includePaths)
            {
                fetchStrategy.Add(path);
            }
            return(fetchStrategy);
        }
Exemple #2
0
        public static IFetchStrategy <DbSet <T> > BuildFetchStrategy <T>(params Expression <Func <DbSet <T>, object> >[] includePaths) where T : class
        {
            var fetchStrategy = new GenericFetchStrategy <T>();

            foreach (var path in includePaths)
            {
                fetchStrategy.Add(path);
            }
            return(fetchStrategy);
        }