asp.net - (are you missing a using directive or an assembly reference?) -
i writing common business logic class in app_code folder connecting database using efw.but showing following error " error 1 type or namespace name 'job' not found"
using system; using system.collections.generic; using system.linq; using system.web; using system.data; namespace webapplication6.app_code { public class blcommon { public list<job> getjobs() { pubs2012entities pubsobject = new pubs2012entities(); var x = pubsobject.jobs.tolist<job>(); return x; } } } , class generated efw jobs table namespace webapplication6.app_code { using system; using system.collections.generic; public partial class job { public short job_id { get; set; } public string job_desc { get; set; } public byte min_lvl { get; set; } public byte max_lvl { get; set; } } }
seem dont have reference assembly wich contain mentioned class
Comments
Post a Comment