private void Button_Click(object sender, RoutedEventArgs e) { // system s=Project.selectByname("QDDL.nlbs").FirstOrDefault (); List <role> _role = UserRole.Select(); if (_role == null) { return; } MessageBox.Show("角色列表个数" + _role.Count); //UserRole .SelectBySysGuid (s.guid ); }