Struct DbSetProperty
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
A struct representing facets of DbSet<TEntity> property defined on DbContext derived type.
public readonly struct DbSetProperty
- Inherited Members
Constructors
DbSetProperty(string, Type, IClrPropertySetter?)
Initializes new DbSetProperty with given values.
public DbSetProperty(string name, Type type, IClrPropertySetter? setter)
Parameters
name
stringThe name of DbSet.
type
TypeThe entity clr type of DbSet.
setter
IClrPropertySetterThe setter for DbSet property.
Properties
Name
Gets the name of this DbSet property.
public string Name { get; }
Property Value
Setter
The property setter for this DbSet property.
public IClrPropertySetter? Setter { get; }
Property Value
Type
Gets the clr type of entity type this DbSet property represent.
public Type Type { get; }