ODataUtils.SaveODataAnnotations 方法 (IEdmModel)

将支持的特定于 OData 的批注的内存中表现形式转换为可序列化形式。

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

语法

声明
<ExtensionAttribute> _
Public Shared Sub SaveODataAnnotations ( _
    model As IEdmModel _
)
用法
Dim model As IEdmModel

model.SaveODataAnnotations()
public static void SaveODataAnnotations(
    this IEdmModel model
)
[ExtensionAttribute]
public:
static void SaveODataAnnotations(
    IEdmModel^ model
)
static member SaveODataAnnotations : 
        model:IEdmModel -> unit 
public static function SaveODataAnnotations(
    model : IEdmModel
)

参数

用法说明

在 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 类

SaveODataAnnotations 重载

Microsoft.Data.OData 命名空间