Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ColumnCustomConfiguration" /> class.
 /// </summary>
 /// <param name="ColumnImportance">ColumnImportance (required).</param>
 /// <param name="ColumnDataType">ColumnDataType (required).</param>
 /// <param name="ColumnCultureName">ColumnCultureName.</param>
 /// <param name="ColumnFormat">ColumnFormat.</param>
 /// <param name="CanBeTruncated">CanBeTruncated.</param>
 /// <param name="DisplayGroupName">DisplayGroupName.</param>
 public ColumnCustomConfiguration(BeezUPCommonColumnImportance ColumnImportance = default(BeezUPCommonColumnImportance), BeezUPCommonColumnDataType ColumnDataType = default(BeezUPCommonColumnDataType), ColumnCultureName ColumnCultureName = default(ColumnCultureName), ColumnFormat ColumnFormat = default(ColumnFormat), CanBeTruncated CanBeTruncated = default(CanBeTruncated), DisplayGroupName DisplayGroupName = default(DisplayGroupName))
 {
     // to ensure "ColumnImportance" is required (not null)
     if (ColumnImportance == null)
     {
         throw new InvalidDataException("ColumnImportance is a required property for ColumnCustomConfiguration and cannot be null");
     }
     else
     {
         this.ColumnImportance = ColumnImportance;
     }
     // to ensure "ColumnDataType" is required (not null)
     if (ColumnDataType == null)
     {
         throw new InvalidDataException("ColumnDataType is a required property for ColumnCustomConfiguration and cannot be null");
     }
     else
     {
         this.ColumnDataType = ColumnDataType;
     }
     this.ColumnCultureName = ColumnCultureName;
     this.ColumnFormat      = ColumnFormat;
     this.CanBeTruncated    = CanBeTruncated;
     this.DisplayGroupName  = DisplayGroupName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChannelColumnConfiguration" /> class.
 /// </summary>
 /// <param name="ColumnImportance">ColumnImportance (required).</param>
 /// <param name="ColumnDataType">ColumnDataType (required).</param>
 /// <param name="BeezUPColumnName">BeezUPColumnName.</param>
 public ChannelColumnConfiguration(BeezUPCommonColumnImportance ColumnImportance = default(BeezUPCommonColumnImportance), BeezUPCommonColumnDataType ColumnDataType = default(BeezUPCommonColumnDataType), BeezUPCommonBeezUPColumnName BeezUPColumnName = default(BeezUPCommonBeezUPColumnName))
 {
     // to ensure "ColumnImportance" is required (not null)
     if (ColumnImportance == null)
     {
         throw new InvalidDataException("ColumnImportance is a required property for ChannelColumnConfiguration and cannot be null");
     }
     else
     {
         this.ColumnImportance = ColumnImportance;
     }
     // to ensure "ColumnDataType" is required (not null)
     if (ColumnDataType == null)
     {
         throw new InvalidDataException("ColumnDataType is a required property for ChannelColumnConfiguration and cannot be null");
     }
     else
     {
         this.ColumnDataType = ColumnDataType;
     }
     this.BeezUPColumnName = BeezUPColumnName;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BeezUPColumnConfiguration" /> class.
 /// </summary>
 /// <param name="BeezUPColumnName">BeezUPColumnName (required).</param>
 /// <param name="Unique">/!\\ ONLY AVAILABLE ON CATALOG COLUMN NOT ON CUSTOM COLUMNS!!  If true, an error happen at the second occurence of the same value for this column  This information will be used during the importation process and later for mapping proposal (default to false).</param>
 /// <param name="ColumnImportance">ColumnImportance (required).</param>
 /// <param name="ColumnDataType">ColumnDataType.</param>
 /// <param name="CanBeTruncated">CanBeTruncated.</param>
 /// <param name="DisplayGroupName">DisplayGroupName (required).</param>
 /// <param name="Description">Describe the BeezUP column.</param>
 public BeezUPColumnConfiguration(BeezUPCommonBeezUPColumnName BeezUPColumnName = default(BeezUPCommonBeezUPColumnName), bool?Unique = false, BeezUPCommonColumnImportance ColumnImportance = default(BeezUPCommonColumnImportance), BeezUPCommonColumnDataType ColumnDataType = default(BeezUPCommonColumnDataType), CanBeTruncated CanBeTruncated = default(CanBeTruncated), DisplayGroupName DisplayGroupName = default(DisplayGroupName), string Description = default(string))
 {
     // to ensure "BeezUPColumnName" is required (not null)
     if (BeezUPColumnName == null)
     {
         throw new InvalidDataException("BeezUPColumnName is a required property for BeezUPColumnConfiguration and cannot be null");
     }
     else
     {
         this.BeezUPColumnName = BeezUPColumnName;
     }
     // to ensure "ColumnImportance" is required (not null)
     if (ColumnImportance == null)
     {
         throw new InvalidDataException("ColumnImportance is a required property for BeezUPColumnConfiguration and cannot be null");
     }
     else
     {
         this.ColumnImportance = ColumnImportance;
     }
     // to ensure "DisplayGroupName" is required (not null)
     if (DisplayGroupName == null)
     {
         throw new InvalidDataException("DisplayGroupName is a required property for BeezUPColumnConfiguration and cannot be null");
     }
     else
     {
         this.DisplayGroupName = DisplayGroupName;
     }
     // use default value if no "Unique" provided
     if (Unique == null)
     {
         this.Unique = false;
     }
     else
     {
         this.Unique = Unique;
     }
     this.ColumnDataType = ColumnDataType;
     this.CanBeTruncated = CanBeTruncated;
     this.Description    = Description;
 }