Exemplo n.º 1
0
 public void Add(UploadedPicture picture)
 {
     using (var context = new PicturesDBDataContext(_connection))
     {
         context.UploadedPictures.InsertOnSubmit(picture);
         context.SubmitChanges();
     }
 }
Exemplo n.º 2
0
 public void TimesSeen(int id)
 {
     using (var context = new PicturesDBDataContext(_connection))
     {
         UploadedPicture image = context.UploadedPictures.FirstOrDefault(i => i.id == id);
         image.TimesSeen = image.TimesSeen + 1;
         context.SubmitChanges();
     }
 }
Exemplo n.º 3
0
 private void detach_UploadedPictures(UploadedPicture entity)
 {
     this.SendPropertyChanging();
     entity.User = null;
 }
Exemplo n.º 4
0
 partial void DeleteUploadedPicture(UploadedPicture instance);
Exemplo n.º 5
0
 partial void UpdateUploadedPicture(UploadedPicture instance);
Exemplo n.º 6
0
 partial void InsertUploadedPicture(UploadedPicture instance);