Metodo IRelatedEnd.Remove (IEntityWithRelationships)
[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 oggetto dalla raccolta di oggetti nell'entità finale correlata.
Spazio dei nomi: System.Data.Entity.Core.Objects.DataClasses
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
Function Remove ( _
entity As IEntityWithRelationships _
) As Boolean
'Utilizzo
Dim instance As IRelatedEnd
Dim entity As IEntityWithRelationships
Dim returnValue As Boolean
returnValue = instance.Remove(entity)
bool Remove(
IEntityWithRelationships entity
)
bool Remove(
IEntityWithRelationships^ entity
)
abstract Remove :
entity:IEntityWithRelationships -> bool
function Remove(
entity : IEntityWithRelationships
) : boolean
Parametri
- entity
Tipo: System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships
Oggetto da rimuovere dalla raccolta. entity deve implementare IEntityWithRelationships.
Valore restituito
Tipo: System.Boolean
true se l'entità è stata rimossa correttamente; false se l'entità non fa parte di IRelatedEnd.