Example #1
0
        public static IQueryable <T1> Include <T1, T2>(this IQueryable <T1> query, Include <T2> include, string parentPath = null)
        {
            var builder = new Includer <T1, T2>(query, parentPath);

            include.Execute(builder);
            return(builder.Query);
        }
Example #2
0
        public override void Execute <TParentEntity>(Includer <TParentEntity, User> includer)
        {
            if (userModules != null)
            {
                includer.Include(x => x.UserModules, userModules);
            }

            base.Execute(includer);
        }
Example #3
0
        public override void Execute <TParentEntity>(Includer <TParentEntity, UserModule> includer)
        {
            if (user)
            {
                includer.Include(x => x.User);
            }
            if (granter)
            {
                includer.Include(x => x.Granter);
            }

            base.Execute(includer);
        }
Example #4
0
 public virtual void Execute <TParentEntity>(Includer <TParentEntity, T> includer)
 {
 }