示例#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);
        }
示例#3
0
 private RafyPrincipal(RafyIdentity realIdentity)
 {
     this._userId      = realIdentity.Id;
     this._edsIdentity = realIdentity;
 }
示例#4
0
 public void Insert(int index, RafyIdentity entity)
 {
     base.Insert(index, entity);
 }
示例#5
0
 public int IndexOf(RafyIdentity entity)
 {
     return(base.IndexOf(entity));
 }
示例#6
0
 public bool Contains(RafyIdentity entity)
 {
     return(base.Contains(entity));
 }
示例#7
0
 public void Add(RafyIdentity entity)
 {
     base.Add(entity);
 }
示例#8
0
 public bool Remove(RafyIdentity entity)
 {
     return(base.Remove(entity));
 }