Condividi tramite


Metodo RelatedEnd.IRelatedEnd.Remove (Object)

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

Rimuove un'entità dall'entità finale correlata. Se il proprietario è collegato a una cache, contrassegna la relazione per l'eliminazione e se la relazione è di tipo composizione contrassegna per l'eliminazione anche l'entità.

Spazio dei nomi:  System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function Remove ( _
    entity As Object _
) As Boolean Implements IRelatedEnd.Remove
'Utilizzo
Dim instance As RelatedEnd 
Dim entity As Object 
Dim returnValue As Boolean 

returnValue = CType(instance, IRelatedEnd).Remove(entity)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
bool IRelatedEnd.Remove(
    Object entity
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual bool Remove(
    Object^ entity
) sealed = IRelatedEnd::Remove
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract Remove : 
        entity:Object -> bool 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override Remove : 
        entity:Object -> bool
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parametri

  • entity
    Tipo: System.Object
    Istanza di entità da rimuovere dall'entità finale correlata

Valore restituito

Tipo: System.Boolean
Restituisce true se l'entità è stata rimossa correttamente, false se l'entità non fa parte di RelatedEnd.

Implements

IRelatedEnd.Remove(Object)

Vedere anche

Riferimento

RelatedEnd Classe

Overload Remove

Spazio dei nomi System.Data.Entity.Core.Objects.DataClasses