System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (18)
1543/// Creates a new <see cref="DbNewInstanceExpression"/>. If the type argument is a collection type, the arguments specify the elements of the collection. Otherwise the arguments are used as property or column values in the new instance.
1565public static DbNewInstanceExpression New(this TypeUsage instanceType, IEnumerable<DbExpression> arguments)
1571/// Creates a new <see cref="DbNewInstanceExpression"/>. If the type argument is a collection type, the arguments specify the elements of the collection. Otherwise the arguments are used as property or column values in the new instance.
1593public static DbNewInstanceExpression New(this TypeUsage instanceType, params DbExpression[] arguments)
1598private static DbNewInstanceExpression NewInstance(TypeUsage instanceType, IEnumerable<DbExpression> arguments)
1606/// Creates a new <see cref="DbNewInstanceExpression"/> that constructs a collection containing the specified elements. The type of the collection is based on the common type of the elements. If no common element type exists an exception is thrown.
1614public static DbNewInstanceExpression NewCollection(IEnumerable<DbExpression> elements)
1620/// Creates a new <see cref="DbNewInstanceExpression"/> that constructs a collection containing the specified elements. The type of the collection is based on the common type of the elements. If no common element type exists an exception is thrown.
1628public static DbNewInstanceExpression NewCollection(params DbExpression[] elements)
1633private static DbNewInstanceExpression CreateNewCollection(IEnumerable<DbExpression> elements)
1641/// Creates a new <see cref="DbNewInstanceExpression"/> that constructs an empty collection of the specified collection type.
1647public static DbNewInstanceExpression NewEmptyCollection(this TypeUsage collectionType)
1656/// Creates a new <see cref="DbNewInstanceExpression"/> that produces a row with the specified named columns and the given values, specified as expressions.
1664public static DbNewInstanceExpression NewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues)
2797/// DbRelatedEntityRefs are used in conjuction with <see cref="DbNewInstanceExpression"/>
2813/// Creates a new <see cref="DbNewInstanceExpression"/> that constructs an instance of an Entity type
2823/// <returns>A new DbNewInstanceExpression that represents the construction of the Entity, and includes the specified related Entity information in the see <see cref="DbNewInstanceExpression.RelatedEntityReferences"/> collection.</returns>
2824internal static DbNewInstanceExpression CreateNewEntityWithRelationshipsExpression(EntityType entityType, IList<DbExpression> attributeValues, IList<DbRelatedEntityRef> relationships)