Exemplo n.º 1
0
        public void registerMigraine(migraine migraine)
        {
            var transaction = DBM.getInstance().Database.BeginTransaction();

            migraine.date = DateTime.Now;
            //DateTime.ParseExact(Fn,
            //                            "dd-MM-yyyy",
            //                            CultureInfo.CreateSpecificCulture("es-Es"));
            DBM.getInstance().migraine.Add(migraine);
            //DBM.getInstance().Entry(migraine).State = EntityState.Added;
            DBM.save(transaction);
        }
Exemplo n.º 2
0
 public List <migraine> getMigraines()
 {
     return(DBM.getInstance().migraine.Select(x => x).ToList());
 }