/// <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(); } }
/// <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(); } }
/// <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(); } }