This is a migrated thread and some comments may be shown as answers.

Vs2015 Hilights errors, but...

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 01 Feb 2017, 10:45 PM

I have a grid that is suddenly showing errors in VS2015, but the code compiles and runs exactly as expected.  I've included a screenshot...  The error isn't all that helpful really, saying the data type cannot be inferred... Could someone tell me what I can do to resolve these errors?  Again, they're not really errors since the grid runs as expected when the app is deployed.

The class the grid is using:

public class UploadedDocument
    {
        public UploadedDocument();
 
        public string CaseId { get; set; }
        public string ClientId { get; set; }
        public string DocketNumber { get; set; }
        public int DocumentSource { get; set; }
        public virtual DocumentSource DocumentSource1 { get; set; }
        public string EmployeeId { get; set; }
        public string FirstName { get; set; }
        public int Id { get; set; }
        public string LastName { get; set; }
        public bool Matched { get; set; }
        public string Name { get; set; }
        public DateTime OrderDate { get; set; }
        public string SSN { get; set; }
        public string Type { get; set; }
        public DateTime UploadDate { get; set; }
    }

 

I'm not using any data annotations because the class in question is a generated POCO. The other odd thing is that these weren't highlighting as errors earlier in the day...  Since it compiles, I guess it's not a big deal, but I'm wary of them...

1 Answer, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 01 Feb 2017, 10:58 PM
I hate it when this happens... I post a question, and magically the answer pops into my head.  I still don;t know the actual cause, but I cleared it up by rebuilding the reference with my POCO definitions and built a new NuGet package, then updated that in my app, and suddenly, no more highlighted errors...
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Share this question
or