コード例 #1
0
 private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
 {
     db = new MyDataContex("Data Source=isostore:/Eventos.sdf");
     if (!db.DatabaseExists())
     {
         db.CreateDatabase();
         AgregarUsuarioInicial();
     }
 }
コード例 #2
0
 private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
 {
     db = new MyDataContex(MyDataContex.cadena);
     if (!db.DatabaseExists())
     {
         db.CreateDatabase();
         AgregarUsuarioInicial();
     }
 }