SqlServerAnnotationProvider.For Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
For(IEntityType) | |
For(IForeignKey) | |
For(IIndex) | |
For(IKey) | |
For(IModel) | |
For(IProperty) |
For(IEntityType)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
Public Overridable Function For (entityType As IEntityType) As IRelationalEntityTypeAnnotations
Parameters
- entityType
- IEntityType
Returns
Implements
Applies to
For(IForeignKey)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
Public Overridable Function For (foreignKey As IForeignKey) As IRelationalForeignKeyAnnotations
Parameters
- foreignKey
- IForeignKey
Returns
Implements
Applies to
For(IIndex)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IIndex index);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations
Public Overridable Function For (index As IIndex) As IRelationalIndexAnnotations
Parameters
- index
- IIndex
Returns
Implements
Applies to
For(IKey)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IKey key);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations
Public Overridable Function For (key As IKey) As IRelationalKeyAnnotations
Parameters
- key
- IKey
Returns
Implements
Applies to
For(IModel)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations
Public Overridable Function For (model As IModel) As IRelationalModelAnnotations
Parameters
- model
- IModel
Returns
Implements
Applies to
For(IProperty)
public virtual Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations For (Microsoft.EntityFrameworkCore.Metadata.IProperty property);
abstract member For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
override this.For : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations
Public Overridable Function For (property As IProperty) As IRelationalPropertyAnnotations
Parameters
- property
- IProperty
Returns
Implements
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework