Exemple #1
0
        // 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);
        }
Exemple #2
0
 private void MapAll()
 {
     this.sqlParams = PropertyMapper.GetParamsFromObject(item).ToList();
 }