public IEnumerable<AdoParameterInfo> GetParametersForUpdate(object entity)
{
var parameters = GetParametersForAllReferenceAndRegularColumns(entity);
parameters.Add(new AdoParameterInfo(PrimaryKey.Name, PrimaryKey.DbType, PrimaryKey.PropertyInfo.GetValue(entity, null)));
return parameters;
}