IEdmEntityType is a class in the Microsoft.Data.Edm library that represents an entity type in the Entity Data Model (EDM). It provides properties for getting and setting the name, namespace, base type, properties, and key of the entity type.
Example:
```
// Create a new entity type
IEdmEntityType customerType = new EdmEntityType("Namespace", "Customer");
// Set base type and add properties
customerType.BaseType = new EdmEntityTypeReference(personType, false);
customerType.AddStructuralProperty("Id", EdmPrimitiveTypeKind.Int32);
customerType.AddStructuralProperty("Name", EdmPrimitiveTypeKind.String);
customerType.AddStructuralProperty("Email", EdmPrimitiveTypeKind.String);
// Set key property
customerType.AddKeys(customerType.AddStructuralProperty("Id", EdmPrimitiveTypeKind.Int32));
// Determine the package library
The IEdmEntityType is part of the Microsoft.Data.Edm package library.
C# (CSharp) IEdmEntityType - 60 examples found. These are the top rated real world C# (CSharp) examples of IEdmEntityType extracted from open source projects. You can rate examples to help us improve the quality of examples.