public void addPhotograph() { byte[] thumbBits = new byte[100]; byte[] fullBits = new byte[2000]; using (var context = new PhotographContext()) { var photo = new Photograph { Title = "My Dog", ThumbnailBits = thumbBits }; var fullImage = new PhotographFullImage { HighResolutionBits = fullBits }; photo.PhotographFullImage = fullImage; context.Photographs.Add(photo); context.SaveChanges(); } }