Я следую учебник«MovieDataContext» не может быть найдено
Я получаю следующее сообщение об ошибке:
The type or namespace name 'MovieDataContext' could not be found (are you missing a using directive or an assembly reference?)
Я следую учебник«MovieDataContext» не может быть найдено
Я получаю следующее сообщение об ошибке:
The type or namespace name 'MovieDataContext' could not be found (are you missing a using directive or an assembly reference?)
В сообщении об ошибке говорит:
(are you missing a using directive or an assembly reference?
Таким образом добавить правильное положение, используя для приведения имен, в котором этот класс определен в рамках :
using MvcApplication1.Models;
Проверьте это Список 1 - Контроллеры \ HomeContro ller.cs
using System.Linq;
using System.Web.Mvc;
using MvcApplication1.Models; // you have forgotten to include this
Листинг 1 использует класс LINQ to SQL
DataContext (MovieDataContext
) для представления базы данных MoviesDB
. MoveDataContext
класс был generated by
Visual Studio Object Relational Designer.
If you have done the work of creating the LINQ to SQL Classes then just include the using statements as in the listing 1
@niranjan н Дарин им с использованием пространства имен «MvcApplication5.Models» ... нет успеха –
@niranjan калы н Дарин хорошо я понял, что это out..thanks оба U Fr Ур Помогите –