Unable to create an object of type ''. For the different patterns supported at design t

Unable to create an object of type 'XXXXXXXXXX'. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728

出现这个错误,是因为没有把将数据访问层(如果有)设置为默认项目!