Esempio n. 1
0
        internal override object ConvertRuntimeFieldToGateway(DBField dbField, string runtimeValue)
        {
            GatewayBlob gatewayValue = new GatewayBlob();

            gatewayValue.Blob        = BlobType.getBytes(runtimeValue);
            gatewayValue.blobContent = BlobContent.Binary;
            gatewayValue.BlobSize    = BlobType.getBlobSize(runtimeValue);
            return(gatewayValue);
        }
Esempio n. 2
0
        internal override object ConvertRuntimeFieldToGateway(DBField dbField, string runtimeValue)
        {
            Debug.Assert(BlobType.getContentType(runtimeValue) == BlobType.CONTENT_TYPE_ANSI);
            GatewayBlob gatewayValue = new GatewayBlob();

            gatewayValue.Blob        = BlobType.getString(runtimeValue);
            gatewayValue.blobContent = BlobContent.Ansi;
            gatewayValue.BlobSize    = BlobType.getBlobSize(runtimeValue);
            return(gatewayValue);
        }