Beispiel #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Id == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Id");
     }
     if (PartitionKey != null)
     {
         PartitionKey.Validate();
     }
 }
Beispiel #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (GremlinGraphGetResultsId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "GremlinGraphGetResultsId");
     }
     if (PartitionKey != null)
     {
         PartitionKey.Validate();
     }
 }
Beispiel #3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (SqlContainerGetResultsId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "SqlContainerGetResultsId");
     }
     if (PartitionKey != null)
     {
         PartitionKey.Validate();
     }
 }