ObjectSet<TEntity>.Detach(TEntity) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the object from the object context.
C#
public void Detach (TEntity entity);
abstract member Detach : 'Entity -> unit
override this.Detach : 'Entity -> unit
Public Sub Detach (entity As TEntity)
- entity
- TEntity
Object to be detached. Only the entity is removed; if there are any related objects that are being tracked by the same ObjectStateManager , those will not be detached automatically.
منتج | الإصدارات |
---|---|
Entity Framework | 6.2.0 |
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
ملاحظات Entity Framework
Entity Framework هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: