DbSetProperty(String, Type, IClrPropertySetter) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用给定值初始化 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。