DbSetProperty(String, Type, IClrPropertySetter) 构造函数

定义

使用给定值初始化 new DbSetProperty

public DbSetProperty (string name, Type type, Microsoft.EntityFrameworkCore.Metadata.IClrPropertySetter setter);
public DbSetProperty (string name, Type type, Microsoft.EntityFrameworkCore.Metadata.IClrPropertySetter? setter);
new Microsoft.EntityFrameworkCore.Infrastructure.DbSetProperty : string * Type * Microsoft.EntityFrameworkCore.Metadata.IClrPropertySetter -> Microsoft.EntityFrameworkCore.Infrastructure.DbSetProperty
Public Sub New (name As String, type As Type, setter As IClrPropertySetter)

参数

name
String

DbSet 的名称。

type
Type

DbSet 的实体 clr 类型。

setter
IClrPropertySetter

DbSet 属性的 setter。

适用于