Sorry for the noob question. im new and i cant figure this out on google.
The thing is, i used to right click the project go add > new item > ADO.NET Entity and then i choose to generate it from database , afterwards i start using it by typing :
TheEntityName something = new TheEntityName();
but now, for some reason, whenever i type the entity name i get an error that says that it doesnt exist in the current context ?
any idea ?
You need to know the namespace of your entity. Once you know that you have two options. One is adding a using statement in your view
@using namespace
Or use the fully qualified name...
Namespace.entity
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.