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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework