public ActionResult InitDataBase() { CreateSessionFactory.InitDataBase(true); return(RedirectToAction("Index", new { message = "数据库初始化成功!" })); }
public Repository() { session = CreateSessionFactory.GetSession(false); }