Inheritance: ADCriteria
        public UserPrincipal GetUserBySid(object Sid)
        {
            BaseCriteria query = new BaseCriteria("objectSid", Sid.ToString());

            return(Find(query).FirstOrDefault() as UserPrincipal);
        }
        public UserPrincipal GetUserBySid(object Sid)
        {
            BaseCriteria query = new BaseCriteria("objectSid", Sid.ToString());

            return Find(query).FirstOrDefault() as UserPrincipal;
        }