Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7687493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:42:57+00:00 2026-05-31T19:42:57+00:00

I am getting a weird behavior. I have a class that I created that

  • 0

I am getting a weird behavior. I have a class that I created that is used to format data comping from a data entity into a data grid. I am a using a linq query to create a list of the class type from a list of the entity type. Some of the properties of the class are accessible from the linq query but other give me an error. (AMNotStartedPortalDisplay’ does not contain a definition for ‘ChecklistStatusID’). So my question is why can linq access some properties but not others? I see no reason why this should be happening.

Here is my class:

public class AMWOTPortalDisplay
{
    public string DisplayName { get; set; }
    public string LOB { get; set; }
    public string DisplayProjectPackages { get; set; }
    public string ChecklistStatus { get; set; }
    public int ChecklistStatusID { get; set; }
    public string InstallDate { get; set; }
    public string dateToYellow { get; set; }
    public string dateToRed { get; set; }
    public string ApplicationManager { get; set; }
    public string ApplicationManagerLanID { get; set; }
    public int ApplicationManagerUserID { get; set; }
    public string ImpersonatedManager { get; set; }
    public string ImpersonatedManagerLanID { get; set; }
    public int ImpersonatedManagerUserID { get; set; }
    public string DelegateName { get; set; }
    public string DelegateLanID { get; set; }
    public int DelegateUserID { get; set; }
    public string WOTAssignee { get; set; }
    public int ChecklistID { get; set; }
    public string DisplayLinkText { get; set; }
    public string LinkTextURL { get; set; }
    public string rowColor { get; set; }
    public string rowTextColor { get; set; }
}

And here is the linq query as I have it so far:

var portaldisplay = checklists
        .Select(c => new AMNotStartedPortalDisplay
        {
            DisplayName = string.Format("{0} ({1})", c.Application.Name, c.Application.ApplicationID),
            LOB = c.Application.LOB,
            ChecklistStatus = c.ChecklistStatusType.TypeName,
            ChecklistStatusID = c.ChecklistStatusTypeID



        });

Thanks,

Rhonda

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:42:58+00:00Added an answer on May 31, 2026 at 7:42 pm

    Be careful with your types:

    public class AMWOTPortalDisplay
    

    And then:

    Select(c => new AMNotStartedPortalDisplay { ... })
    

    It looks like your query should probably be:

    Select(c => new AMWOTPortalDisplay { ... })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting some weird behaviour recompiling some applications in 2009 that used widestrings at
I'm getting some weird behaviour from a for loop that reads each line in
We are getting a very weird behavior in our development environment that is consistent
Just getting into ajax using MVC3. I am having weird behavior with IE8. The
I have a rails app and I keep getting a weird behavior with pjax
I'm getting weird behavior out of [NSDate timeIntervalSinceReferenceDate] . I have the following function:
I'm getting weird results from the System.out.print immediately below the Scanner declaration in the
I'm getting weird EXC_BAD_ACCESS errors. I thought that I didn't need to retain objects
I'm getting a weird instance of a NameError when attempting to use a class
I'm working on a school project and I'm getting some weird errors from Xcode.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.