// Quick and dirty - should pass exclusions into propertymapper and handle it once. public ICrudOptions <TItem> MapAllExcept(List <string> exclusions) { var mapped = PropertyMapper.GetParamsFromObject(item).ToList(); foreach (var i in mapped) { if (!exclusions.Contains(i.ParameterName)) { this.sqlParams.Add(i); } } return(this); }
private void MapAll() { this.sqlParams = PropertyMapper.GetParamsFromObject(item).ToList(); }