コード例 #1
0
        public List<DataserverPortal> GetPortals(Guid _ssocode)
        {
            DataserverPortalUsersEntities dspuEntities = new DataserverPortalUsersEntities();

            List<DataserverPortal> portallist = new List<DataserverPortal>();

            //IQueryable<DataserverUserPortal> plist = from pl in dspuEntities.DSUserPortals where pl.SsoCode == _ssocode select pl;

            //foreach (DataserverUserPortal p in plist)
            //{
            //    portallist.Add(new DataserverPortal { InstanceUri = p.PortalUri, InstanceName = p.PortalName });
            //}

            return portallist;
        }
コード例 #2
0
        public List<DataserverPortal> GetPortals(Guid _ssocode)
        {
            DataserverPortalUsersEntities dspuEntities = new DataserverPortalUsersEntities();

            List<DataserverPortal> portallist = new List<DataserverPortal>();

            IQueryable<Account.DataserverPortalUser> plist = from pl in dspuEntities.DataserverPortalUsers where pl.SsoCode == _ssocode select pl;

            foreach (Account.DataserverPortalUser p in plist)
            {
                portallist.Add(new DataserverPortal { InstanceUri = p.PortalUri, InstanceName = p.PortalName});
            }

            return portallist;
        }