Пример #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();
     }
 }