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

# EdmNavigationPropertyBinding

> Represents a navigation property binding in an entity set.

## Definition

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

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

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
Microsoft.OData.Mcp.Core.Models.EdmNavigationPropertyBinding
```

## Summary

Represents a navigation property binding in an entity set.

## Remarks

Navigation property bindings establish the connection between navigation properties
and the entity sets that contain the target entities. They are essential for
defining how relationships are resolved in the OData service.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [EdmNavigationPropertyBinding](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmNavigationPropertyBinding.md) class.

#### Syntax

```csharp theme={null}
public EdmNavigationPropertyBinding()
```

### &#x20;.ctor

Initializes a new instance of the [EdmNavigationPropertyBinding](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Models/EdmNavigationPropertyBinding.md) class
with the specified path and target.

#### Syntax

```csharp theme={null}
public EdmNavigationPropertyBinding(string path, string target)
```

#### Parameters

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

#### Exceptions

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

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;Path

Gets or sets the path of the navigation property.

#### Syntax

```csharp theme={null}
public required string Path { get; set; }
```

#### Property Value

Type: `string`
The navigation property path, which may be a simple property name or a more complex path.

#### Remarks

The path identifies which navigation property this binding applies to. For simple cases,
this is just the property name. For more complex scenarios involving inheritance or
containment, the path may include type casts or additional segments.

### &#x20;Target

Gets or sets the target entity set name.

#### Syntax

```csharp theme={null}
public required string Target { get; set; }
```

#### Property Value

Type: `string`
The name of the entity set that contains the target entities for this navigation property.

#### Remarks

When following this navigation property, the target entities will be found in the
entity set specified by this property. The target entity set must be defined in
the same entity container.

## Methods

### &#x20;Equals Override

Determines whether the specified object is equal to the current navigation property binding.

#### Syntax

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

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | The object to compare with the current navigation property binding. |

#### Returns

Type: `bool`
`true` if the specified object is equal to the current navigation property binding; otherwise, `false`.

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Parameters

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

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Parameters

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

#### Returns

Type: `bool`

### &#x20;GetHashCode Override

Returns a hash code for the current navigation property binding.

#### Syntax

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

#### Returns

Type: `int`
A hash code for the current navigation property binding.

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Parameters

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

#### Returns

Type: `bool`

### &#x20;ToString Override

Returns a string representation of the navigation property binding.

#### Syntax

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

#### Returns

Type: `string`
A string showing the path and target relationship.

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.