예제 #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;
 }
예제 #2
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;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateCustomColumnRequest" /> class.
 /// </summary>
 /// <param name="UserColumnName">UserColumnName (required).</param>
 /// <param name="EncryptedExpression">EncryptedExpression (required).</param>
 /// <param name="EncryptedBlocklyExpression">EncryptedBlocklyExpression (required).</param>
 /// <param name="DisplayGroupName">DisplayGroupName (required).</param>
 public CreateCustomColumnRequest(UserColumName UserColumnName = default(UserColumName), EncryptedExpression EncryptedExpression = default(EncryptedExpression), EncryptedBlocklyExpression EncryptedBlocklyExpression = default(EncryptedBlocklyExpression), DisplayGroupName DisplayGroupName = default(DisplayGroupName))
 {
     // to ensure "UserColumnName" is required (not null)
     if (UserColumnName == null)
     {
         throw new InvalidDataException("UserColumnName is a required property for CreateCustomColumnRequest and cannot be null");
     }
     else
     {
         this.UserColumnName = UserColumnName;
     }
     // to ensure "EncryptedExpression" is required (not null)
     if (EncryptedExpression == null)
     {
         throw new InvalidDataException("EncryptedExpression is a required property for CreateCustomColumnRequest and cannot be null");
     }
     else
     {
         this.EncryptedExpression = EncryptedExpression;
     }
     // to ensure "EncryptedBlocklyExpression" is required (not null)
     if (EncryptedBlocklyExpression == null)
     {
         throw new InvalidDataException("EncryptedBlocklyExpression is a required property for CreateCustomColumnRequest and cannot be null");
     }
     else
     {
         this.EncryptedBlocklyExpression = EncryptedBlocklyExpression;
     }
     // to ensure "DisplayGroupName" is required (not null)
     if (DisplayGroupName == null)
     {
         throw new InvalidDataException("DisplayGroupName is a required property for CreateCustomColumnRequest and cannot be null");
     }
     else
     {
         this.DisplayGroupName = DisplayGroupName;
     }
 }