Exemplo n.º 1
0
        public void CreateData(string diary, string quality)
        {
            var bestsleep = new BestSleep();

            bestsleep.DIARY = diary;

            bestsleep.Quality = quality;


            var db = new BestSleepEntities();

            db.BestSleeps.Add(bestsleep);
            db.SaveChanges();
        }
Exemplo n.º 2
0
 public TimeBestSleep(BestSleep bestsleep)
 {
     this.id      = bestsleep.id;
     this.Diary   = bestsleep.DIARY;
     this.Quality = bestsleep.Quality;
 }