This repository was archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Net.Http.OData.Model
Trevor Pilley edited this page Mar 24, 2020
·
3 revisions
The Entity Data Model describes the entities in the OData service, the following classes and their public members are contained within the namespace Net.Http.OData.Model.
Represents a collection type in the Entity Data Model.
| Property | Description |
|---|---|
| EdmType ContainedType { get; } | Gets the EdmType contained in the collection. |
Represents a complex type in the Entity Data Model.
| Property | Description |
|---|---|
| EdmType BaseType { get; } | Gets the EdmType from which this EdmComplexType directly inherits. |
| IReadOnlyList<EdmProperty> Properties { get; } | Gets the properties defined on the type. |
| Method | Description |
|---|---|
| EdmProperty GetProperty(string name) | Gets the property with the specified name. |
Represents an enum member in the Entity Data Model.
| Property | Description |
|---|---|
| string Name { get; } | Gets the name of the enum member. |
| int Value { get; } | Gets the integer value of the enum member. |
Represents an Enum type in the Entity Data Model.
| Property | Description |
|---|---|
| IReadOnlyList<EdmEnumMember> Members { get; } | Gets the EdmEnumMembers that represent the values of the underlying enum. |
| Method | Description |
|---|---|
| object GetClrValue(string value) | Gets the CLR Enum value for the specified Enum member in the Entity Data Model. |
Represents a primitive type in the Entity Data Model.
| Property | Description |
|---|---|
| static EdmType Binary { get; } | |
| static EdmType Boolean { get; } | |
| static EdmType Byte { get; } | |
| static EdmType Date { get; } | |
| static EdmType DateTimeOffset { get; } | |
| static EdmType Decimal { get; } | |
| static EdmType Double { get; } | |
| static EdmType Duration { get; } | |
| static EdmType Guid { get; } | |
| static EdmType Int16 { get; } | |
| static EdmType Int32 { get; } | |
| static EdmType Int64 { get; } | |
| static EdmType NullableBoolean { get; } | |
| static EdmType NullableByte { get; } | |
| static EdmType NullableDate { get; } | |
| static EdmType NullableDateTimeOffset { get; } | |
| static EdmType NullableDecimal { get; } | |
| static EdmType NullableDouble { get; } | |
| static EdmType NullableDuration { get; } | |
| static EdmType NullableGuid { get; } | |
| static EdmType NullableInt16 { get; } | |
| static EdmType NullableInt32 { get; } | |
| static EdmType NullableInt64 { get; } | |
| static EdmType NullableSByte { get; } | |
| static EdmType NullableSingle { get; } | |
| static EdmType NullableTimeOfDay { get; } | |
| static EdmType SByte { get; } | |
| static EdmType Single { get; } | |
| static EdmType Stream { get; } | |
| static EdmType String { get; } | |
| static EdmType TimeOfDay { get; } |
Represents an entity property in the Entity Data Model.
| Property | Description |
|---|---|
| PropertyInfo ClrProperty { get; } | Gets the CLR PropertyInfo for the property. |
| EdmComplexType DeclaringType { get; } | Gets the type in the Entity Data Model which declares this property. |
| bool IsNavigable { get; } | Gets a value indicating whether the property is navigable (i.e. a navigation property). |
| bool IsNullable { get; } | Gets a value indicating whether the property is nullable. |
| string Name { get; } | Gets the name of the property. |
| EdmType PropertyType { get; } | Gets the type of the property in the Entity Data Model. |
Represents a type in the Entity Data Model.
| Property | Description |
|---|---|
| Type ClrType { get; } | Gets the CLR type. |
| string FullName { get; } | Gets the full name. |
| string Name { get; } | Gets the name. |
Represents the Entity Data Model.
| Property | Description |
|---|---|
| static EntityDataModel Current { get; } | Gets the current Entity Data Model. |
| IReadOnlyDictionary<string, EntitySet> EntitySets { get; } | Gets the Entity Sets defined in the Entity Data Model. |
| Method | Description |
|---|---|
| EntitySet EntitySetForPath(string path) | Gets the EntitySet for the path segment of a URI. |
Used to build the Entity Data Model using a fluent API, it should be used once at application startup.
| Method | Description |
|---|---|
| RegisterEntitySet(string entitySetName, Expression<Func<T, object>> entityKeyExpression) | Registers an Entity Set of the specified type to the Entity Data Model with the specified name which can only be queried. |
| RegisterEntitySet(string entitySetName, Expression<Func<T, object>> entityKeyExpression, Capabilities capabilities) | Registers an Entity Set of the specified type to the Entity Data Model with the specified name and Capabilities. |
Represents an Entity Set in the Entity Data Model.
| Property | Description |
|---|---|
| Capabilities Capabilities { get; } | Gets the Capabilities of the Entity Set. |
| EdmComplexType EdmType { get; } | Gets the EdmComplexType of the entities in the set. |
| EdmProperty EntityKey { get; } | Gets the EdmProperty which is the entity key. |
| string Name { get; } | Gets the name of the Entity Set. |