TypeAttributeConfigurationConvention<TAttribute>.Apply Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
Applies this convention to a class that has an attribute of type TAttribute applied.
Namespace: System.Data.Entity.ModelConfiguration.Conventions
Assembly: EntityFramework (in EntityFramework.dll)
Syntax
'Declaration
Public MustOverride Sub Apply ( _
configuration As ConventionTypeConfiguration, _
attribute As TAttribute _
)
'Usage
Dim instance As TypeAttributeConfigurationConvention
Dim configuration As ConventionTypeConfiguration
Dim attribute As TAttribute
instance.Apply(configuration, attribute)
public abstract void Apply(
ConventionTypeConfiguration configuration,
TAttribute attribute
)
public:
virtual void Apply(
ConventionTypeConfiguration^ configuration,
TAttribute attribute
) abstract
abstract Apply :
configuration:ConventionTypeConfiguration *
attribute:'TAttribute -> unit
public abstract function Apply(
configuration : ConventionTypeConfiguration,
attribute : TAttribute
)
Parameters
- configuration
Type: System.Data.Entity.ModelConfiguration.Configuration.ConventionTypeConfiguration
The configuration for the class that contains the property.
- attribute
Type: TAttribute
The attribute.