This documentation is archived and is not being maintained.

ExpectedSqlExceptionAttribute.MatchFirstError Property

 

Gets a value that indicates whether the expected severity, state, and error number are to be matched against the first SqlError in the SqlException.

Namespace:   Microsoft.Data.Tools.Schema.Sql.UnitTesting
Assembly:  Microsoft.Data.Tools.Schema.Sql.UnitTesting (in Microsoft.Data.Tools.Schema.Sql.UnitTesting.dll)

public bool MatchFirstError { get; set; }

Property Value

Type: System.Boolean

true to match the expected severity, state, and error number to the first SqlError in the exception; false to match the expected severity, state, and error number to any SqlError in the exception.

Return to top
Show: