Creates a list of parameters from the collective properties of a sequence of DTOs.
public static DbParameters FromDtos(IEnumerable dtos)
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.
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)
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.
Creates a list of parameters from the collective properties of a sequence of DTOs.
public static DbParameters FromDtos(string name, IEnumerable dtos)
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.