Пример #1
0
        protected override Entity DoGetById(object id, EagerLoadOptions eagerLoad)
        {
            var res = new RafyIdentity
            {
                User = RF.ResolveInstance <UserRepository>().GetById(id) as User
            };

            res.LoadChildrenProperties();

            this.NotifyLoaded(res);

            return(res);
        }
Пример #2
0
        internal RafyIdentity GetBy(string username, string password)
        {
            var res = new RafyIdentity
            {
                User = RF.ResolveInstance <UserRepository>().GetBy(username, password)
            };

            res.LoadChildrenProperties();

            this.NotifyLoaded(res);

            return(res);
        }