में मौजूद नहीं है मेरे पास एक .cs फ़ाइल में नीचे दिया गया कोड है और मैं नीचे दी गई त्रुटियों में आ रहा हूं, किसी भी मदद की सराहना की जाएगी।नाम या नामस्थान नाम नामस्थान
using System.Data.Entity;
namespace Assignment2.Models
{
public class TicketBookingEntities : DbContext
{
public DbSet<Performance> Performances { get; set; }
public DbSet<Production> Productions { get; set; }
}
}
त्रुटियाँ:
Error 1 The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
Error 2 The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?)
Error 3 The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?)
Error 4 The type or namespace name 'DbSet' could not be found (are you missing a using directive or an assembly reference?)
** क्या आप एक असेंबली संदर्भ खो रहे हैं? ** – asawyer
संदर्भ जोड़ने का प्रयास करें। समाधान फ़ाइल पर राइट क्लिक करें, संदर्भ जोड़ें पर क्लिक करें, फिर उचित डीएल देखें। – Sandeep
एक संदर्भ जोड़ना 'कुछ नामस्थान का उपयोग करके लिखने के लिए बिल्कुल अलग है;' –