示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaValidationException"/> class.
 /// </summary>
 /// <param name="validationErrors">The validation errors.</param>
 /// <param name="message">The message.</param>
 public SchemaValidationException(SchemaValidationErrors validationErrors, string message) : base(message)
 {
     this.validationErrors = validationErrors;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SchemaValidationException"/> class.
 /// </summary>
 /// <param name="validationErrors">The validation errors.</param>
 /// <param name="message">The message.</param>
 /// <param name="innerException">The inner exception.</param>
 public SchemaValidationException(SchemaValidationErrors validationErrors, string message, Exception innerException) : base(message, innerException)
 {
     this.validationErrors = validationErrors;
 }
示例#3
0
        public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaTable table, SchemaColumn column, SchemaValidationErrorKind kind)
        {
            var roleType = column.RelationType == null ? null : column.RelationType.RoleType;

            schemaValidationErrors.AddTableError(null, null, roleType, table.ToString(), column.ToString(), kind, kind + ": " + table + "." + column);
        }
示例#4
0
 public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaProcedure schemaProcedure, SchemaValidationErrorKind kind, string message)
 {
     schemaValidationErrors.AddProcedureError(schemaProcedure, kind, message);
 }
示例#5
0
 public static void AddError(SchemaValidationErrors schemaValidationErrors, SchemaTable table, SchemaValidationErrorKind kind)
 {
     schemaValidationErrors.AddTableError(table.ObjectType, table.RelationType, null, table.ToString(), null, kind, kind + ": " + table);
 }