asp.net - Why should I specify a data context class when scaffolding a view? -
asp.net - Why should I specify a data context class when scaffolding a view? -
when adding new view asp.net mvc 5 project using add together view dialog pictured below, i'm invited take template , model class, allows me generate form creating new instances of model or view displays model's properties. why should view care info context class is? in project, whether or not specify info context class, same view generated, i'm guessing there's scenario create difference. might be?
if refer existing dbcontext wizard insert public dbset<employee> employee { get; set; }
(if doesn't exist) in dbcontext derived class . looks visual studio doing of leg work.
asp.net asp.net-mvc
Comments
Post a Comment