public static ImageInfo GetImage( int id ) { using( var ctx = new TecdocBaseDataContext() ) { return ctx.GetImage( id ); } }