Condividi tramite


Metodo ComplexTypeConfiguration<TComplexType>.Ignore<TProperty>

[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.]

Esclude una proprietà dal modello in modo che non venga eseguito il relativo mapping al database.

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

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Ignore(Of TProperty) ( _
    propertyExpression As Expression(Of Func(Of TComplexType, TProperty)) _
) As ComplexTypeConfiguration(Of TComplexType)
'Utilizzo
Dim instance As ComplexTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TComplexType, TProperty))
Dim returnValue As ComplexTypeConfiguration(Of TComplexType)

returnValue = instance.Ignore(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public ComplexTypeConfiguration<TComplexType> Ignore<TProperty>(
    Expression<Func<TComplexType, TProperty>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
generic<typename TProperty>
ComplexTypeConfiguration<TComplexType>^ Ignore(
    Expression<Func<TComplexType, TProperty>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Ignore : 
        propertyExpression:Expression<Func<'TComplexType, 'TProperty>> -> ComplexTypeConfiguration<'TComplexType> 
JScript does not support generic types and methods.

Parametri di tipo

  • TProperty
    Tipo della proprietà da ignorare.

Parametri

Valore restituito

Tipo: System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
Stessa istanza di ComplexTypeConfiguration in modo che da poter concatenare più chiamate.

Vedere anche

Riferimento

ComplexTypeConfiguration<TComplexType> Classe

Spazio dei nomi System.Data.Entity.ModelConfiguration