ODataUtils.LoadODataAnnotations 方法 (IEdmModel, Int32)

将支持的、特定于 OData 的可序列化批注加载到其内存中表现形式。

命名空间:  Microsoft.Data.OData
程序集:  Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Sub LoadODataAnnotations ( _
    model As IEdmModel, _
    maxEntityPropertyMappingsPerType As Integer _
)
用法
Dim model As IEdmModel
Dim maxEntityPropertyMappingsPerType As Integer

model.LoadODataAnnotations(maxEntityPropertyMappingsPerType)
public static void LoadODataAnnotations(
    this IEdmModel model,
    int maxEntityPropertyMappingsPerType
)
[ExtensionAttribute]
public:
static void LoadODataAnnotations(
    IEdmModel^ model, 
    int maxEntityPropertyMappingsPerType
)
static member LoadODataAnnotations : 
        model:IEdmModel * 
        maxEntityPropertyMappingsPerType:int -> unit 
public static function LoadODataAnnotations(
    model : IEdmModel, 
    maxEntityPropertyMappingsPerType : int
)

参数

  • maxEntityPropertyMappingsPerType
    类型:System.Int32
    要为实体类型(在类型本身及其所有基类型上)查找的实体映射属性的最大数目。

用法说明

在 Visual Basic 和 C# 中,您可以对 IEdmModel 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)

请参阅

参考

ODataUtils 类

LoadODataAnnotations 重载

Microsoft.Data.OData 命名空间