예제 #1
0
        public FieldInfo GetFieldInfo(int fieldIndex)
        {
            FieldInfo7 dfmField = this._volStructObj.FieldInfo[fieldIndex] as FieldInfo7;

            if (dfmField == null)
            {
                throw new ApplicationException("Can't get FieldInfo.");
            }

            return(new FieldInfo(dfmField));
        }
예제 #2
0
        public FieldInfo7 ToDfmFieldInfo()
        {
            FieldInfo7 fi = new FieldInfo7
            {
                Name        = this.Name,
                Caption     = this.Caption,
                Type        = this.Type,
                Length      = this.Length,
                Precision   = this.Precision,
                DateFormat  = this.DateFormat,
                Nullability = this.IsNullable
            };

            return(fi);
        }
예제 #3
0
        public FieldInfo(FieldInfo7 fieldInfo)
        {
            if (null == fieldInfo)
            {
                throw new ArgumentNullException();
            }

            this.Name       = fieldInfo.Name;
            this.Caption    = fieldInfo.Caption;
            this.Type       = fieldInfo.Type;
            this.Length     = fieldInfo.Length;
            this.Precision  = fieldInfo.Precision;
            this.DateFormat = fieldInfo.DateFormat;
            this.IsNullable = fieldInfo.Nullability;
        }