示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     using (DataKartDataContext dk = new DataKartDataContext())
     {
         //Instalar o Banco de dados
         if (!dk.DatabaseExists())
         {
             CreateSiteMap();
             dk.CreateDatabase();
             Response.Redirect("~/Administrador/index.aspx");
         }
         else
         {
             CreateSiteMap();
             Response.Redirect("~/Administrador/index.aspx");
         }
     }
 }