IClrCollectionAccessor.Add(Object, Object, Boolean) Method
Definition
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.
Adds a value to the navigation property collection, unless it is already contained in the collection.
public bool Add (object entity, object value, bool forMaterialization);
abstract member Add : obj * obj * bool -> bool
Public Function Add (entity As Object, value As Object, forMaterialization As Boolean) As Boolean
Parameters
- entity
- Object
The entity instance.
- value
- Object
The value to add.
- forMaterialization
- Boolean
If true, then the value is being added as part of query materialization.
Returns
true
if a value was added; false
if it was already in the collection.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework