> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EdmEntitySet

> Represents an entity set in an OData entity container.

export function DocsBadge({text, variant = 'neutral'}) {
  const variantClasses = {
    success: 'mint-bg-green-500/10 mint-text-green-600 dark:mint-text-green-400 mint-border-green-500/20',
    neutral: 'mint-bg-slate-500/10 mint-text-slate-600 dark:mint-text-slate-400 mint-border-slate-500/20',
    info: 'mint-bg-blue-500/10 mint-text-blue-600 dark:mint-text-blue-400 mint-border-blue-500/20',
    warning: 'mint-bg-amber-500/10 mint-text-amber-600 dark:mint-text-amber-400 mint-border-amber-500/20',
    danger: 'mint-bg-red-500/10 mint-text-red-600 dark:mint-text-red-400 mint-border-red-500/20'
  };
  const classes = variantClasses[variant] || variantClasses.neutral;
  return <span className={`mint-inline-flex mint-items-center mint-px-2 mint-py-0.5 mint-rounded-full mint-text-xs mint-font-medium mint-tracking-wide mint-border mint-ml-1.5 mint-align-middle mint-whitespace-nowrap ${classes}`}>
      {text}
    </span>;
}

## Definition

**Assembly:** Microsoft.OData.Mcp.Core.dll

**Namespace:** Microsoft.OData.Mcp.Core.Models

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Microsoft.OData.Mcp.Core.Models.EdmEntitySet
```

## Summary

Represents an entity set in an OData entity container.

## Remarks

Entity sets define collections of entities that can be accessed through the OData service.
They provide the addressable resources that clients can query, create, update, and delete.
Each entity set is associated with a specific entity type and may include navigation
property bindings to establish relationships with other entity sets.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  .ctor

Initializes a new instance of the [EdmEntitySet](/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmEntitySet) class.

#### Syntax

```csharp theme={"dark"}
public EdmEntitySet()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  .ctor

Initializes a new instance of the [EdmEntitySet](/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmEntitySet) class with the specified name and entity type.

#### Syntax

```csharp theme={"dark"}
public EdmEntitySet(string name, string entityType)
```

#### Parameters

| Name         | Type     | Description                                  |
| ------------ | -------- | -------------------------------------------- |
| `name`       | `string` | The name of the entity set.                  |
| `entityType` | `string` | The entity type of the entities in this set. |

#### Exceptions

| Exception           | Description                                               |
| ------------------- | --------------------------------------------------------- |
| `ArgumentException` | Thrown when *name* or *entityType* is null or whitespace. |

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  .ctor <DocsBadge text="Inherited" variant="neutral" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  Annotations

Gets or sets the annotations for this entity set.

#### Syntax

```csharp theme={"dark"}
public System.Collections.Generic.Dictionary<string, object> Annotations { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.Dictionary<string, object>`
A dictionary of annotations that provide additional metadata about the entity set.

#### Remarks

Annotations can be used to specify additional behaviors, constraints, or metadata
that are not captured by the standard OData model elements.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  EntityType

Gets or sets the entity type of the entities in this set.

#### Syntax

```csharp theme={"dark"}
public required string EntityType { get; set; }
```

#### Property Value

Type: `string`
The fully qualified name of the entity type for entities in this set.

#### Remarks

All entities in the set must be instances of this entity type or its derived types.
This determines the structure and properties available for entities in the set.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  EntityTypeName

Gets the short name of the entity type (without namespace).

#### Syntax

```csharp theme={"dark"}
public string EntityTypeName { get; }
```

#### Property Value

Type: `string`
The entity type name without the namespace prefix.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  EntityTypeNamespace

Gets the namespace of the entity type.

#### Syntax

```csharp theme={"dark"}
public string EntityTypeNamespace { get; }
```

#### Property Value

Type: `string`
The namespace portion of the entity type, or an empty string if no namespace.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  HasNavigationPropertyBindings

Gets a value indicating whether this entity set has any navigation property bindings.

#### Syntax

```csharp theme={"dark"}
public bool HasNavigationPropertyBindings { get; }
```

#### Property Value

Type: `bool`
`true` if the entity set has navigation property bindings; otherwise, `false`.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  IncludeInServiceDocument

Gets or sets a value indicating whether change tracking is enabled for this entity set.

#### Syntax

```csharp theme={"dark"}
public bool IncludeInServiceDocument { get; set; }
```

#### Property Value

Type: `bool`
`true` if change tracking is enabled; otherwise, `false`.

#### Remarks

When change tracking is enabled, the service can provide delta tokens and support
for change tracking queries, allowing clients to efficiently retrieve only changed data.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  Name

Gets or sets the name of the entity set.

#### Syntax

```csharp theme={"dark"}
public required string Name { get; set; }
```

#### Property Value

Type: `string`
The name used to address this entity set in OData URLs.

#### Remarks

The entity set name appears in the URL path when accessing the collection
or individual entities within the set.

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  NavigationPropertyBindings

Gets or sets the navigation property bindings for this entity set.

#### Syntax

```csharp theme={"dark"}
public System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmNavigationPropertyBinding> NavigationPropertyBindings { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.List<Microsoft.OData.Mcp.Core.Models.EdmNavigationPropertyBinding>`
A collection of navigation property bindings that establish relationships with other entity sets.

#### Remarks

Navigation property bindings specify which entity set should be used when following
a navigation property from entities in this set. They establish the connections
between related entity sets in the model.

## Methods

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  AddAnnotation

Adds an annotation to this entity set.

#### Syntax

```csharp theme={"dark"}
public void AddAnnotation(string term, object value)
```

#### Parameters

| Name    | Type     | Description           |
| ------- | -------- | --------------------- |
| `term`  | `string` | The annotation term.  |
| `value` | `object` | The annotation value. |

#### Exceptions

| Exception           | Description                               |
| ------------------- | ----------------------------------------- |
| `ArgumentException` | Thrown when *term* is null or whitespace. |

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  AddNavigationPropertyBinding

Adds a navigation property binding to this entity set.

#### Syntax

```csharp theme={"dark"}
public void AddNavigationPropertyBinding(string navigationPropertyPath, string target)
```

#### Parameters

| Name                     | Type     | Description                          |
| ------------------------ | -------- | ------------------------------------ |
| `navigationPropertyPath` | `string` | The path of the navigation property. |
| `target`                 | `string` | The target entity set name.          |

#### Exceptions

| Exception           | Description                                                             |
| ------------------- | ----------------------------------------------------------------------- |
| `ArgumentException` | Thrown when *navigationPropertyPath* or *target* is null or whitespace. |

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  Equals <DocsBadge text="Override" variant="info" />

Determines whether the specified object is equal to the current entity set.

#### Syntax

```csharp theme={"dark"}
public override bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description                                        |
| ----- | --------- | -------------------------------------------------- |
| `obj` | `object?` | The object to compare with the current entity set. |

#### Returns

Type: `bool`
`true` if the specified object is equal to the current entity set; otherwise, `false`.

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  Equals <DocsBadge text="Inherited" variant="neutral" /> <DocsBadge text="Virtual" variant="warning" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name  | Type      | Description |
| ----- | --------- | ----------- |
| `obj` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  Equals <DocsBadge text="Inherited" variant="neutral" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  GetAnnotation

Gets an annotation value by term.

#### Syntax

```csharp theme={"dark"}
public T GetAnnotation<T>(string term)
```

#### Parameters

| Name   | Type     | Description          |
| ------ | -------- | -------------------- |
| `term` | `string` | The annotation term. |

#### Returns

Type: `T?`
The annotation value, or the default value of *T* if not found.

#### Type Parameters

* `T` - The type of the annotation value.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  GetHashCode <DocsBadge text="Override" variant="info" />

Returns a hash code for the current entity set.

#### Syntax

```csharp theme={"dark"}
public override int GetHashCode()
```

#### Returns

Type: `int`
A hash code for the current entity set.

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  GetHashCode <DocsBadge text="Inherited" variant="neutral" /> <DocsBadge text="Virtual" variant="warning" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  GetNavigationPropertyBinding

Gets a navigation property binding by navigation property path.

#### Syntax

```csharp theme={"dark"}
public Microsoft.OData.Mcp.Core.Models.EdmNavigationPropertyBinding GetNavigationPropertyBinding(string navigationPropertyPath)
```

#### Parameters

| Name                     | Type     | Description                          |
| ------------------------ | -------- | ------------------------------------ |
| `navigationPropertyPath` | `string` | The path of the navigation property. |

#### Returns

Type: `Microsoft.OData.Mcp.Core.Models.EdmNavigationPropertyBinding?`
The navigation property binding with the specified path, or `null` if not found.

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  GetType <DocsBadge text="Inherited" variant="neutral" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  MemberwiseClone <DocsBadge text="Inherited" variant="neutral" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### <Icon icon="thumbtack" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  ReferenceEquals <DocsBadge text="Inherited" variant="neutral" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name   | Type      | Description |
| ------ | --------- | ----------- |
| `objA` | `object?` | -           |
| `objB` | `object?` | -           |

#### Returns

Type: `bool`

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  RemoveNavigationPropertyBinding

Removes a navigation property binding from this entity set.

#### Syntax

```csharp theme={"dark"}
public bool RemoveNavigationPropertyBinding(string navigationPropertyPath)
```

#### Parameters

| Name                     | Type     | Description                                    |
| ------------------------ | -------- | ---------------------------------------------- |
| `navigationPropertyPath` | `string` | The path of the navigation property to remove. |

#### Returns

Type: `bool`
`true` if the binding was removed; otherwise, `false`.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  ToString <DocsBadge text="Override" variant="info" />

Returns a string representation of the entity set.

#### Syntax

```csharp theme={"dark"}
public override string ToString()
```

#### Returns

Type: `string`
A string containing the entity set name and entity type.

### <Icon icon="code-fork" iconType="duotone" color="#419AC5" size={24} style={{ paddingRight: '8px' }} />  ToString <DocsBadge text="Inherited" variant="neutral" /> <DocsBadge text="Virtual" variant="warning" />

<Note>Inherited from `object`</Note>

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`
