Export (0) Print
Expand All

SqlCeCommandBuilder.QuotePrefix Property

Gets or sets the beginning character or characters to use when specifying SQL Server database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public override string QuotePrefix { get; set; }

Property Value

Type: System.String
The beginning character or characters to use. The default is an empty string.

ExceptionCondition
InvalidOperationException

This property cannot be changed after an INSERT, UPDATE, or DELETE command has been generated.

Use the QuotePrefix and QuoteSuffix properties to specify delimiters, such as quotes, to encapsulate the object name.

NoteNote

Although you cannot change the QuotePrefix or QuoteSuffix properties after an INSERT, UPDATE, or DELETE operation has been generated, you can change their settings after calling the update method of a data adapter.

Show:
© 2014 Microsoft