예제 #1
0
            public RulesBundle(ContextModel context, MainRule rule)
            {
                UserResourceRule = new ResourceRule <Olma.User>(context.UserId, rule)
                                   .IgnoreQueryFilter()
                                   .UseEagleLoad(t => t
                                                 .Include(p => p.Person)
                                                 .Include(p => p.UserSettings)
                                                 .Include(p => p.Permissions)
                                                 .Include(p => p.Submissions)
                                                 .Include(p => p.UserGroups)
                                                 );

                Password = new RandomPasswordRule();
            }
예제 #2
0
 public ContextModel(UserResetPasswordRequest request, MainRule rule) : base(request, rule)
 {
 }