Exemple #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            byte[]  image     = File.ReadAllBytes("C:\\Users\\olgak\\source\\screen.bmp");
            Binary  Binarydta = new Binary(image);
            MyImage img       = new MyImage();

            img.Id  = 1;
            img.Img = Binarydta;
            db.MyImages.InsertOnSubmit(img);
            db.SubmitChanges();
        }
Exemple #2
0
 partial void DeleteMyImage(MyImage instance);
Exemple #3
0
 partial void UpdateMyImage(MyImage instance);
Exemple #4
0
 partial void InsertMyImage(MyImage instance);