public void Delete(ImageSize item)
 {
     Entities.ImageSizes.DeleteObject(item);
     SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ImageSizes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToImageSizes(ImageSize imageSize)
 {
     base.AddObject("ImageSizes", imageSize);
 }
 public void Add(ImageSize item)
 {
     Entities.ImageSizes.AddObject(item);
     SaveChanges();
 }
 /// <summary>
 /// Create a new ImageSize object.
 /// </summary>
 /// <param name="imageId">Initial value of the ImageId property.</param>
 /// <param name="path">Initial value of the Path property.</param>
 /// <param name="fileName">Initial value of the FileName property.</param>
 /// <param name="width">Initial value of the Width property.</param>
 /// <param name="height">Initial value of the Height property.</param>
 /// <param name="imageSizeId">Initial value of the ImageSizeId property.</param>
 public static ImageSize CreateImageSize(global::System.Int32 imageId, global::System.String path, global::System.String fileName, global::System.Int32 width, global::System.Int32 height, global::System.Int32 imageSizeId)
 {
     ImageSize imageSize = new ImageSize();
     imageSize.ImageId = imageId;
     imageSize.Path = path;
     imageSize.FileName = fileName;
     imageSize.Width = width;
     imageSize.Height = height;
     imageSize.ImageSizeId = imageSizeId;
     return imageSize;
 }