I completely changed a table with a new name and contents because I obtained errors whenever I tried to start my project with the “Start without debugging” Debug option. The errors referred to a single database table, which I created locally, that used similar table names such as:
ForumCatTable forumcat = db.ForumCatTable.SingleOrDefault(p => p.ForumCatID == CatID);
References to other tables did not appear to be a problem, so I created a different table with the name of “ForumCategorys” and tried again to access it with the following code:
DataClassesDataContext db =newDataClassesDataContext();
ForumCategory forumcat = db.ForumCategorys.SingleOrDefault(p => p.ForumCatID == CatID);
I am able to view the table and how every item in the table has been defined as well as data previously stored in the table. But, I keep getting errors that say: “The type or namespace name ‘ForumCategory’ could not be found.” What am I doing wrong? Please help.
Maurice