예제 #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);
        }
예제 #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);
        }