예제 #1
0
        Type ICustomTypeProvider.GetCustomType()
        {
            if (_schema == null)
            {
                return(null);
            }

            return(_schema.GetCustomType());
        }
예제 #2
0
        public ItemValues(BaseItemsViewModel vmItems)
        {
            _schema = vmItems.Schema;

            foreach (var property in _schema.GetCustomType().GetProperties())
            {
                ItemAttribute newValue = new ItemAttribute(property.Name, null);
                _valuesDictionary.Add(property.Name, newValue);
                _valuesCollection.Add(newValue);
            }
        }