Table of Contents

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 string

The name of DbSet.

type Type

The entity clr type of DbSet.

setter IClrPropertySetter

The setter for DbSet property.

Properties

Name

Gets the name of this DbSet property.

public string Name { get; }

Property Value

string

Setter

The property setter for this DbSet property.

public IClrPropertySetter? Setter { get; }

Property Value

IClrPropertySetter

Type

Gets the clr type of entity type this DbSet property represent.

public Type Type { get; }

Property Value

Type