Exemple #1
0
        static void ImgInfos()
        {
            using (IsisEntities ctx = new IsisEntities())
            {

                List<ProdImageInfo> iis = ctx.ProdImageInfoSet("1122");

                Console.WriteLine();
                Console.ReadLine();
            }
        }
Exemple #2
0
        static void ImageFile()
        {
            using (IsisEntities ctx = new IsisEntities())
            {

                var imgFile = (from img in ctx.Images
                            where img.ID == 5735
                            select new ImageFile
                            {
                                ID = img.ID,
                                Description = img.ImageInfo.Description,
                                FileName = img.ImageInfo.FileName,
                                MimeContentType = img.ImageInfo.MimeType.ContentType,
                                MimeSubType = img.ImageInfo.MimeTypeCD,
                                Data = img.ImageData
                            }
                           ).FirstOrDefault();

                Console.WriteLine();
                Console.ReadLine();
            }
        }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (_prdnDbContext != null)
     {
         _prdnDbContext.Dispose();
         _prdnDbContext = null;
     }
     if (_isisDbContext != null)
     {
         _isisDbContext.Dispose();
         _isisDbContext = null;
     }
 }