ComplexCollectionBuilder.ComplexCollection 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.
Overloads
| Name | Description |
|---|---|
| ComplexCollection(String) |
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection(String, Action<ComplexCollectionBuilder>) |
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection(Type, String) |
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection(Type, String, Action<ComplexCollectionBuilder>) |
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection(Type, String, String) |
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection(Type, String, String, Action<ComplexCollectionBuilder>) |
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection<TProperty,TElement>(String, String) |
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection<TProperty,TElement>(String, String, Action<ComplexCollectionBuilder<TElement>>) |
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection<TProperty,TElement>(String) |
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
| ComplexCollection<TProperty,TElement>(String, Action<ComplexCollectionBuilder<TElement>>) |
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added. |
ComplexCollection(String)
- Source:
- ComplexCollectionBuilder.cs
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(string propertyName);
abstract member ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyName As String) As ComplexCollectionBuilder
Parameters
- propertyName
- String
The name of the property to be configured.
Returns
An object that can be used to configure the property.
Remarks
When adding a new property with this overload the property name must match the name of a CLR property or field on the complex type. This overload cannot be used to add a new shadow state complex property.
Applies to
ComplexCollection(String, Action<ComplexCollectionBuilder>)
- Source:
- ComplexCollectionBuilder.cs
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexCollectionBuilder
Parameters
- propertyName
- String
The name of the property to be configured.
- buildAction
- Action<ComplexCollectionBuilder>
An action that performs configuration of the property.
Returns
The same builder instance so that multiple configuration calls can be chained.
Remarks
When adding a new property with this overload the property name must match the name of a CLR property or field on the complex type. This overload cannot be used to add a new shadow state complex property.
Applies to
ComplexCollection(Type, String)
- Source:
- ComplexCollectionBuilder.cs
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(Type propertyType, string propertyName);
abstract member ComplexCollection : Type * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : Type * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String) As ComplexCollectionBuilder
Parameters
- propertyType
- Type
The type of the property to be configured.
- propertyName
- String
The name of the property to be configured.
Returns
An object that can be used to configure the property.
Remarks
When adding a new complex property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection(Type, String, Action<ComplexCollectionBuilder>)
- Source:
- ComplexCollectionBuilder.cs
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(Type propertyType, string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : Type * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexCollectionBuilder
Parameters
- propertyType
- Type
The type of the property to be configured.
- propertyName
- String
The name of the property to be configured.
- buildAction
- Action<ComplexCollectionBuilder>
An action that performs configuration of the property.
Returns
The same builder instance so that multiple configuration calls can be chained.
Remarks
When adding a new complex property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection(Type, String, String)
- Source:
- ComplexCollectionBuilder.cs
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(Type propertyType, string propertyName, string complexTypeName);
abstract member ComplexCollection : Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : Type * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String, complexTypeName As String) As ComplexCollectionBuilder
Parameters
- propertyType
- Type
The type of the property to be configured.
- propertyName
- String
The name of the property to be configured.
- complexTypeName
- String
The name of the complex type.
Returns
An object that can be used to configure the property.
Remarks
When adding a new complex property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection(Type, String, String, Action<ComplexCollectionBuilder>)
- Source:
- ComplexCollectionBuilder.cs
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection(Type propertyType, string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> buildAction);
abstract member ComplexCollection : Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : Type * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection (propertyType As Type, propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexCollectionBuilder)) As ComplexCollectionBuilder
Parameters
- propertyType
- Type
The type of the property to be configured.
- propertyName
- String
The name of the property to be configured.
- complexTypeName
- String
The name of the complex type.
- buildAction
- Action<ComplexCollectionBuilder>
An action that performs configuration of the property.
Returns
An object that can be used to configure the property.
Remarks
When adding a new complex property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection<TProperty,TElement>(String, String)
- Source:
- ComplexCollectionBuilder.cs
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement> ComplexCollection<TProperty,TElement>(string propertyName, string complexTypeName) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
override this.ComplexCollection : string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, complexTypeName As String) As ComplexCollectionBuilder(Of TElement)
Type Parameters
- TProperty
The type of the property to be configured.
- TElement
The element type.
Parameters
- propertyName
- String
The name of the property to be configured.
- complexTypeName
- String
The name of the complex type.
Returns
An object that can be used to configure the property.
Remarks
When adding a new property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection<TProperty,TElement>(String, String, Action<ComplexCollectionBuilder<TElement>>)
- Source:
- ComplexCollectionBuilder.cs
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection<TProperty,TElement>(string propertyName, string complexTypeName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement>> buildAction) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, complexTypeName As String, buildAction As Action(Of ComplexCollectionBuilder(Of TElement))) As ComplexCollectionBuilder
Type Parameters
- TProperty
The type of the property to be configured.
- TElement
The element type.
Parameters
- propertyName
- String
The name of the property to be configured.
- complexTypeName
- String
The name of the complex type.
- buildAction
- Action<ComplexCollectionBuilder<TElement>>
An action that performs configuration of the property.
Returns
An object that can be used to configure the property.
Remarks
When adding a new property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection<TProperty,TElement>(String)
- Source:
- ComplexCollectionBuilder.cs
Returns an object that can be used to configure a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement> ComplexCollection<TProperty,TElement>(string propertyName) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
override this.ComplexCollection : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String) As ComplexCollectionBuilder(Of TElement)
Type Parameters
- TProperty
The type of the property to be configured.
- TElement
The element type.
Parameters
- propertyName
- String
The name of the property to be configured.
Returns
An object that can be used to configure the property.
Remarks
When adding a new property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.
Applies to
ComplexCollection<TProperty,TElement>(String, Action<ComplexCollectionBuilder<TElement>>)
- Source:
- ComplexCollectionBuilder.cs
Configures a complex collection of the complex type. If no property with the given name exists, then a new property will be added.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder ComplexCollection<TProperty,TElement>(string propertyName, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<TElement>> buildAction) where TProperty : System.Collections.Generic.IEnumerable<TElement>;
abstract member ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
override this.ComplexCollection : string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder<'Element>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexCollectionBuilder
Public Overridable Function ComplexCollection(Of TProperty As IEnumerable(Of TElement), TElement As IEnumerable(Of TElement)) (propertyName As String, buildAction As Action(Of ComplexCollectionBuilder(Of TElement))) As ComplexCollectionBuilder
Type Parameters
- TProperty
The type of the property to be configured.
- TElement
The element type.
Parameters
- propertyName
- String
The name of the property to be configured.
- buildAction
- Action<ComplexCollectionBuilder<TElement>>
An action that performs configuration of the property.
Returns
An object that can be used to configure the property.
Remarks
When adding a new property, if a property with the same name exists in the complex class then it will be added to the model. If no property exists in the complex class, then a new shadow state complex property will be added. A shadow state property is one that does not have a corresponding property in the complex class. The current value for the property is stored in the ChangeTracker rather than being stored in instances of the complex class.