Last post Feb 21, 2017 08:00 AM by AngelinaJolie
Feb 13, 2017 04:51 PM|mj1223|LINK
I created a new entity and then clicked build to save it. in the context I am shown the following error
Inconsistent accessibility: property type 'DbSet<AssessmentReport>' is less accessible than property 'CRI_SupportEntities.AssessmentReports'
It was auto-generated so I have no clue what it is trying to tell me.
Feb 13, 2017 05:01 PM|kaushalparik27|LINK
Please check if you have used «public» accessor to your class
public class AssessmentReport
Feb 13, 2017 05:58 PM|mj1223|LINK
it was an auto generated class i did not do anything... that was why i was confused. I deleted the entity and added again and it worked. Strange...
Feb 21, 2017 08:00 AM|AngelinaJolie|LINK
Just a personal habit, every time I modify the EF , I just Ctrl+S to save it, and then it will auto execute the modified operation.