将支持的、特定于 OData 的可序列化批注加载到其内存中表现形式。
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Sub LoadODataAnnotations ( _
model As IEdmModel, _
entityType As IEdmEntityType, _
maxEntityPropertyMappingsPerType As Integer _
)
用法
Dim model As IEdmModel
Dim entityType As IEdmEntityType
Dim maxEntityPropertyMappingsPerType As Integer
model.LoadODataAnnotations(entityType, _
maxEntityPropertyMappingsPerType)
public static void LoadODataAnnotations(
this IEdmModel model,
IEdmEntityType entityType,
int maxEntityPropertyMappingsPerType
)
[ExtensionAttribute]
public:
static void LoadODataAnnotations(
IEdmModel^ model,
IEdmEntityType^ entityType,
int maxEntityPropertyMappingsPerType
)
static member LoadODataAnnotations :
model:IEdmModel *
entityType:IEdmEntityType *
maxEntityPropertyMappingsPerType:int -> unit
public static function LoadODataAnnotations(
model : IEdmModel,
entityType : IEdmEntityType,
maxEntityPropertyMappingsPerType : int
)
参数
- model
类型:Microsoft.Data.Edm.IEdmModel
包含批注的 IEdmModel。
- entityType
类型:Microsoft.Data.Edm.IEdmEntityType
要处理的 IEdmEntityType。
- 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)。