Returns a DbSet<TEntity> instance for access to entities of the given type in the context and the underlying store.
Assembly: EntityFramework (in EntityFramework.dll)
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Set")] public virtual DbSet<TEntity> Set<TEntity>() where TEntity : class
The type entity for which a set should be returned.
Return ValueType: System.Data.Entity.DbSet<>
A set for the given entity type.
Note that Entity Framework requires that this method return the same instance each time that it is called for a given context instance and entity type. Also, the non-generic DbSet returned by the Set(Type) method must wrap the same underlying query and set of entities. These invariants must be maintained if this method is overridden for anything other than creating test doubles for unit testing. See the DbSet<TEntity> class for more details.