/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (LinkedService != null)
     {
         LinkedService.Validate();
     }
 }
 /// <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();
     }
 }
示例#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();
     }
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the LinkedServiceResource class.
 /// </summary>
 /// <param name="properties">Properties of linked service.</param>
 /// <param name="id">The resource identifier.</param>
 /// <param name="name">The resource name.</param>
 /// <param name="type">The resource type.</param>
 /// <param name="etag">Etag identifies change in the resource.</param>
 public LinkedServiceResource(LinkedService properties, string id = default(string), string name = default(string), string type = default(string), string etag = default(string))
     : base(id, name, type, etag)
 {
     Properties = properties;
     CustomInit();
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the LinkedServiceResource class.
 /// </summary>
 public LinkedServiceResource()
 {
     Properties = new LinkedService();
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the LinkedServiceDebugResource class.
 /// </summary>
 /// <param name="properties">Properties of linked service.</param>
 /// <param name="name">The resource name.</param>
 public LinkedServiceDebugResource(LinkedService properties, string name = default(string))
     : base(name)
 {
     Properties = properties;
     CustomInit();
 }