DbParameters.FromDtos method (1 of 3)

Creates a list of parameters from the collective properties of a sequence of DTOs.

public static DbParameters FromDtos(IEnumerable dtos)

Remarks

The name of each parameter is prop_index, where prop is the name of the corresponding DTO property and index is the zero-based index of the DTO.

See Also


DbParameters.FromDtos method (2 of 3)

Creates a list of parameters from the collective properties of a sequence of DTOs.

public static DbParameters FromDtos(Func<string, int, string> name, IEnumerable dtos)

Remarks

The name of each parameter is determined by calling the specified function with the name of the corresponding DTO property and the zero-based index of the DTO.

See Also


DbParameters.FromDtos method (3 of 3)

Creates a list of parameters from the collective properties of a sequence of DTOs.

public static DbParameters FromDtos(string name, IEnumerable dtos)

Remarks

The name of each parameter is name_prop_index, where name is as specified and prop is the name of the corresponding DTO property and index is the zero-based index of the DTO.

See Also