Condividi tramite


Metodo ConventionsConfiguration.AddAfter<TExistingConvention>

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Abilita una convenzione per l'oggetto DbModelBuilder. Questa convenzione verrà eseguita dopo quella specificata.

Spazio dei nomi:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")> _
Public Sub AddAfter(Of TExistingConvention As IConvention) ( _
    newConvention As IConvention _
)
'Utilizzo
Dim instance As ConventionsConfiguration 
Dim newConvention As IConvention

instance.AddAfter(newConvention)
[SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")]
public void AddAfter<TExistingConvention>(
    IConvention newConvention
)
where TExistingConvention : IConvention
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1004:GenericMethodsShouldProvideTypeParameter")]
public:
generic<typename TExistingConvention>
where TExistingConvention : IConvention 
void AddAfter(
    IConvention^ newConvention
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter")>]
member AddAfter : 
        newConvention:IConvention -> unit   when 'TExistingConvention : IConvention
JScript does not support generic types and methods.

Parametri di tipo

  • TExistingConvention
    Tipo della convenzione dopo la quale verrà eseguita quella abilitata.

Parametri

Vedere anche

Riferimento

ConventionsConfiguration Classe

Spazio dei nomi System.Data.Entity.ModelConfiguration.Configuration