你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ODataSource 类

定义

OData 源的复制活动源。

public class ODataSource : Azure.ResourceManager.DataFactory.Models.CopyActivitySource
type ODataSource = class
    inherit CopyActivitySource
Public Class ODataSource
Inherits CopyActivitySource
继承

构造函数

ODataSource()

初始化 ODataSource 的新实例。

属性

AdditionalColumns

指定要添加到源数据的其他列。 类型: (AdditionalColumns) (或 Expression 的对象数组,以及) 对象数组的 resultType。

若要将对象分配给此属性,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

AdditionalProperties

附加属性

若要将 对象分配给此属性的值,请使用 FromObjectAsJson<T>(T, JsonSerializerOptions)

若要将已格式化的 json 字符串分配给此属性,请使用 FromString(String)

示例:

  • BinaryData.FromObjectAsJson (“foo”) 创建“foo”的有效负载。
  • BinaryData.FromString (“\”foo\“”) 创建“foo”的有效负载。
  • BinaryData.FromObjectAsJson (new { key = “value” }) 创建 { “key”: “value” } 的有效负载。
  • BinaryData.FromString (“{\”key\“: \”value\“}”) 创建 { “key”: “value” } 的有效负载。

(继承自 CopyActivitySource)
DisableMetricsCollection

如果为 true,则禁用数据存储指标收集。 默认值为 false。 类型:布尔 (或 resultType 布尔) 表达式。

(继承自 CopyActivitySource)
HttpRequestTimeout

超时 (TimeSpan) 获取 HTTP 响应。 这是获取响应而不是读取响应数据的超时。 默认值:00:05:00。 Type:string (或 expression with resultType string) ,pattern: ( (\d+) .) ? (\d\d) : (60| ([0-5][0-9]) ) : (60| ([0-5][0-9]) ) 。

MaxConcurrentConnections

源数据存储的最大并发连接计数。 类型:integer (或 expression with resultType integer) 。

(继承自 CopyActivitySource)
Query

OData 查询。 例如,“$top=1”。 类型:字符串 (或带有 resultType 字符串) 的表达式。

SourceRetryCount

源重试计数。 类型:integer (或 expression with resultType integer) 。

(继承自 CopyActivitySource)
SourceRetryWait

源重试等待。 Type:string (或 expression with resultType string) ,pattern: ( (\d+) .) ? (\d\d) : (60| ([0-5][0-9]) ) : (60| ([0-5][0-9]) ) 。

(继承自 CopyActivitySource)

适用于