EntitySet Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a particular usage of a structure defined in EntityType. In the conceptual-model, this represents a set that can query and persist entities. In the store-model it represents a table. From a store-space model-convention it can be used to configure table name with Table property and table schema with Schema property.
public class EntitySet : System.Data.Entity.Core.Metadata.Edm.EntitySetBase
type EntitySet = class
inherit EntitySetBase
Public Class EntitySet
Inherits EntitySetBase
- Inheritance
Properties
BuiltInTypeKind |
Gets the built-in type kind for this EntitySet. |
DefiningQuery |
Gets escaped provider specific SQL describing this entity set. (Inherited from EntitySetBase) |
Documentation |
Gets or sets the documentation associated with this type. (Inherited from MetadataItem) |
ElementType |
Gets the entity type of this EntitySet. |
EntityContainer |
Gets the entity container of the current entity or relationship set. (Inherited from EntitySetBase) |
MetadataProperties |
Gets the list of properties of the current type. (Inherited from MetadataItem) |
Name |
Gets or sets the name of the current entity or relationship set. If this property is changed from store-space, the mapping layer must also be updated to reflect the new name. To change the table name of a store space EntitySet use the Table property. (Inherited from EntitySetBase) |
Schema |
Gets or sets the database schema for this entity set. (Inherited from EntitySetBase) |
Table |
Gets or sets the database table name for this entity set. (Inherited from EntitySetBase) |
Methods
AddAnnotation(String, Object) |
Adds or updates an annotation with the specified name and value. (Inherited from MetadataItem) |
Create(String, String, String, String, EntityType, IEnumerable<MetadataProperty>) |
The factory method for constructing the EntitySet object. |
RemoveAnnotation(String) |
Removes an annotation with the specified name. (Inherited from MetadataItem) |
ToString() |
Returns the name of the current entity or relationship set. (Inherited from EntitySetBase) |
Extension Methods
CreateRef(EntitySet, IEnumerable<DbExpression>) |
Creates a new DbRefExpression that encodes a reference to a specific entity based on key values. |
CreateRef(EntitySet, DbExpression[]) |
Creates a new DbRefExpression that encodes a reference to a specific entity based on key values. |
CreateRef(EntitySet, EntityType, IEnumerable<DbExpression>) |
Creates a new DbRefExpression that encodes a reference to a specific entity of a given type based on key values. |
CreateRef(EntitySet, EntityType, DbExpression[]) |
Creates a new DbRefExpression that encodes a reference to a specific entity of a given type based on key values. |
RefFromKey(EntitySet, DbExpression, EntityType) |
Creates a new DbRefExpression that encodes a reference to a specific Entity based on key values. |
RefFromKey(EntitySet, DbExpression) |
Creates a new DbRefExpression that encodes a reference to a specific Entity based on key values. |
Scan(EntitySetBase) |
Creates a new DbScanExpression that references the specified entity or relationship set. |
Applies to
Entity Framework