public static Result <ResourceEdmx> GZipToBase64(GZipBinary source) => FlowHelpers.With(source) .OnSuccess(edmx => Base64Module.BytesToBase64(edmx.ByteArray) .OnSuccess(base64 => new ResourceEdmx(base64)));
public static Result <XmlEdmx> GZipToXml(GZipBinary gzip) => FlowHelpers.With(gzip) .Map(edmx => edmx.ByteArray.Bytes) .OnSuccess(edmx => GzipModule.Decompress(edmx)) .Map(edmx => edmx.ToXml());