/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (Dataset == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Dataset");
     }
     if (Dataset != null)
     {
         Dataset.Validate();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (Dataset != null)
     {
         Dataset.Validate();
     }
     if (LinkedService != null)
     {
         LinkedService.Validate();
     }
     if (SchemaLinkedService != null)
     {
         SchemaLinkedService.Validate();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Name == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Name");
     }
     if (Dataset != null)
     {
         Dataset.Validate();
     }
     if (LinkedService != null)
     {
         LinkedService.Validate();
     }
     if (Flowlet != null)
     {
         Flowlet.Validate();
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (Dataset == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Dataset");
     }
     if (MaxConcurrentConnections < 1)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "MaxConcurrentConnections", 1);
     }
     if (LogStorageSettings != null)
     {
         LogStorageSettings.Validate();
     }
     if (Dataset != null)
     {
         Dataset.Validate();
     }
 }