ObjectSet<TEntity>.DeleteObject 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
將物件標記為待刪除。
命名空間: System.Data.Entity.Core.Objects
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Sub DeleteObject ( _
entity As TEntity _
)
'用途
Dim instance As ObjectSet
Dim entity As TEntity
instance.DeleteObject(entity)
public void DeleteObject(
TEntity entity
)
public:
virtual void DeleteObject(
TEntity entity
) sealed
abstract DeleteObject :
entity:'TEntity -> unit
override DeleteObject :
entity:'TEntity -> unit
public final function DeleteObject(
entity : TEntity
)
參數
Implements
IObjectSet<TEntity>.DeleteObject(TEntity)