无论我如何修改这个脚本,当我调试时,它仍然会给我Object reference not set to an instance of an object.消息(如果我不调试,程序运行得很好,但是每次我调试时,我都会收到这个消息,为什么呢?)
public string GetTemplate(int pageId)
{
string template = "";
PagesIndex qq = new PagesIndex();
qq = (from cc in db.PagesIndexes where cc.Id == pageId select