Beispiel #1
0
        public static ReadOnlyDictionary <string, object> ShapeDataWithoutParameters(
            this IBaseEntity entity,
            Func <Guid, string, IEnumerable <LinkDto> > function,
            string fields = "")
        {
            var dictionary = (IDictionary <string, object>)entity.ShapeDataObject(fields);

            dictionary.Add(CommonConstants.KeyLink, function?.Invoke(entity.Id, fields));
            return(new ReadOnlyDictionary <string, object>(dictionary));
        }