Пример #1
0
            public DbDataColumn(string name, Type dataType, IPropertyEnumerableDictionary attributes)
            {
                if (String.IsNullOrEmpty(name))
                {
                    throw new ArgumentNullException("name");
                }

                this.name       = name;
                this.dataType   = dataType;
                this.attributes = attributes;
            }             // ctor
Пример #2
0
        }         // ctor

        public SimpleDataColumn(string name, Type dataType, IPropertyEnumerableDictionary attributes = null)
        {
            if (String.IsNullOrEmpty(name))
            {
                throw new ArgumentNullException("name");
            }
            if (dataType == null)
            {
                throw new ArgumentNullException("dataType");
            }

            this.name       = name;
            this.dataType   = dataType;
            this.attributes = attributes ?? PropertyDictionary.EmptyReadOnly;
        }         // ctor
Пример #3
0
        }         // ctor

        /// <summary></summary>
        /// <param name="name"></param>
        /// <param name="dataType"></param>
        /// <param name="bindingPath"></param>
        /// <param name="properties"></param>
        public PpsDataFieldInfo(string name, Type dataType, string bindingPath, IPropertyEnumerableDictionary properties)
        {
            this.dataColumn  = new SimpleDataColumn(name, dataType, properties);
            this.BindingPath = bindingPath ?? throw new ArgumentNullException(nameof(bindingPath));
        }         // ctor