Closed ejball closed 2 years ago
This is similar to Sql.ColumnNames(Where), but generates parameter names for the specified type of DTO, for use with DtoParameters.AddDto, etc.
Sql.ColumnNames(Where)
DtoParameters.AddDto
So Sql.DtoParamNames<WidgetRecord>() generates @WidgetId, @Name, @Weight, i.e. one parameter name for each property.
Sql.DtoParamNames<WidgetRecord>()
@WidgetId, @Name, @Weight
Perhaps there should also be DtoParameters.AddDtoWhere and DtoParameters.FromDtoWhere?
DtoParameters.AddDtoWhere
DtoParameters.FromDtoWhere
This is similar to
Sql.ColumnNames(Where)
, but generates parameter names for the specified type of DTO, for use withDtoParameters.AddDto
, etc.So
Sql.DtoParamNames<WidgetRecord>()
generates@WidgetId, @Name, @Weight
, i.e. one parameter name for each property.