Methods

Add(Object)Add(Object)

Begins tracking the given entity, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

Add(TEntity)Add(Of TEntity)(TEntity)

Begins tracking the given entity, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by
'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo',
to access the database asynchronously. For all other cases the non async method should be used.

AddRange(IEnumerable)AddRange(IEnumerable(Of Object))

Begins tracking the given entities, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

AddRange(Object[])AddRange(Object())

Begins tracking the given entities, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

Begins tracking the given entity, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by
'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo',
to access the database asynchronously. For all other cases the non async method should be used.

AddRangeAsync(Object[])AddRangeAsync(Object())

Begins tracking the given entity, and any other reachable entities that are
not already being tracked, in the Added state such that they will
be inserted into the database when SaveChanges() is called.

This method is async only to allow special value generators, such as the one used by
'Microsoft.EntityFrameworkCore.Metadata.SqlServerValueGenerationStrategy.SequenceHiLo',
to access the database asynchronously. For all other cases the non async method should be used.

Attach(Object)Attach(Object)

Begins tracking the given entity in the Unchanged state
such that no operation will be performed when SaveChanges()
is called.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Unchanged state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.

Attach(TEntity)Attach(Of TEntity)(TEntity)

AttachRange(IEnumerable)AttachRange(IEnumerable(Of Object))

Begins tracking the given entities in the Unchanged state
such that no operation will be performed when SaveChanges()
is called.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Unchanged state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.

AttachRange(Object[])AttachRange(Object())

Begins tracking the given entities in the Unchanged state
such that no operation will be performed when SaveChanges()
is called.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Unchanged state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.

Entry(TEntity)Entry(Of TEntity)(TEntity)

Equals(Object)Equals(Object)

Inherited from System.Object

Equals(Object, Object)Equals(Object, Object)

Inherited from System.Object

Find(Type, Object[])Find(Type, Object())

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

Find(Object[])Find(Of TEntity)(Object())

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

FindAsync(Type, Object[])FindAsync(Type, Object())

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

FindAsync(Object[])FindAsync(Of TEntity)(Object())

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

Finds an entity with the given primary key values. If an entity with the given primary key values
is being tracked by the context, then it is returned immediately without making a request to the
database. Otherwise, a query is made to the dataabse for an entity with the given primary key values
and this entity, if found, is attached to the context and returned. If no entity is found, then
null is returned.

OnModelCreating(ModelBuilder)OnModelCreating(ModelBuilder)

Override this method to further configure the model that was discovered by convention from the entity types
exposed in DbSet<TEntity> properties on your derived context. The resulting model may be cached
and re-used for subsequent instances of your derived context.

Set()Set(Of TEntity)()

ToString()ToString()

Inherited from System.Object

Update(Object)Update(Object)

Begins tracking the given entity in the Modified state such that it will
be updated in the database when SaveChanges() is called.

All properties of the entity will be marked as modified. To mark only some properties as modified, use
Attach(Object) to begin tracking the entity in the Unchanged
state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Modified state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.

Update(TEntity)Update(Of TEntity)(TEntity)

UpdateRange(IEnumerable)UpdateRange(IEnumerable(Of Object))

Begins tracking the given entities in the Modified state such that they will
be updated in the database when SaveChanges() is called.

All properties of each entity will be marked as modified. To mark only some properties as modified, use
Attach(Object) to begin tracking each entity in the Unchanged
state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Modified state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.

UpdateRange(Object[])UpdateRange(Object())

Begins tracking the given entities in the Modified state such that they will
be updated in the database when SaveChanges() is called.

All properties of each entity will be marked as modified. To mark only some properties as modified, use
Attach(Object) to begin tracking each entity in the Unchanged
state and then use the returned EntityEntry to mark the desired properties as modified.

A recursive search of the navigation properties will be performed to find reachable entities
that are not already being tracked by the context. These entities will also begin to be tracked
by the context. If a reachable entity has its primary key value set
then it will be tracked in the Modified state. If the primary key
value is not set then it will be tracked in the Added state.
An entity is considered to have its primary key value set if the primary key property is set
to anything other than the CLR default for the property type.