SqlDropDataLossError Class
This class represents a warning from the SQL Server deployment engine where the potential for DROP data loss has been identified. The table that is specified in the constructor is the target table.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.DataSchemaError
Microsoft.Data.Schema.Sql.SqlServerError
Microsoft.Data.Schema.Sql.Build.SqlPossibleDataLossError
Microsoft.Data.Schema.Sql.Build.SqlDropDataLossError
Namespace: Microsoft.Data.Schema.Sql.Build
Assembly: Microsoft.Data.Schema.Sql (in Microsoft.Data.Schema.Sql.dll)
Syntax
'Declaration
Public NotInheritable Class SqlDropDataLossError _
Inherits SqlPossibleDataLossError
public sealed class SqlDropDataLossError : SqlPossibleDataLossError
public ref class SqlDropDataLossError sealed : public SqlPossibleDataLossError
[<Sealed>]
type SqlDropDataLossError =
class
inherit SqlPossibleDataLossError
end
public final class SqlDropDataLossError extends SqlPossibleDataLossError
The SqlDropDataLossError type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SqlDropDataLossError | Initializes a new instance of the SqlDropDataLossError class. |
Top
Properties
Name | Description | |
---|---|---|
BuildErrorCode | Gets the complete error code for this error. (Inherited from DataSchemaError.) | |
Column | Gets the column number where the error occurred. (Inherited from DataSchemaError.) | |
Document | Gets the name of the document where the error occurred. (Inherited from DataSchemaError.) | |
ErrorCode | Gets the error code. (Inherited from DataSchemaError.) | |
HelpKeyword | Gets or sets the keyword to connect the error to Help documentation. (Inherited from DataSchemaError.) | |
Line | Gets the line number where the error occurred. (Inherited from DataSchemaError.) | |
Message | Gets the error message. (Inherited from DataSchemaError.) | |
Prefix | Gets the prefix for the error. (Inherited from DataSchemaError.) | |
Severity | Gets the severity assigned to the error. (Inherited from DataSchemaError.) | |
Table | Gets the table that contains the data loss changes. (Inherited from SqlPossibleDataLossError.) | |
TargetColumn | Gets the column that will be dropped from the target model. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.