1
UPDATE 내 대답어떻게하면 ado.net을 mvc에 통합 할 수 있습니까?
이 내 컨트롤러 : 내보기에 그 결과를 반복 어떻게
public class AdminController : Controller
{
//
// GET: /Admin/
public readonly Itopics _adminT;
public AdminController(Itopics ts)
{
_adminT = ts;
}
public ActionResult Index()
{
return View();
}
public ActionResult MakeMenu()
{
var model= _adminT.GetMenu();
return View(model);
}
문제는 ... 모델 목록 개체를 포함 .. 어떤 제안입니까?
모델 외부에서 지속성을 유지하는 것이 더 낫습니다.이 답변보기 http://stackoverflow.com/a/6694195/743965 – wnascimento
모델에서 모든 ado.net 로직을 어디에 두어야합니까? 동작? – BlackFire27
ID에 대해 알고 있습니다. – BlackFire27