ObjectDataSourceView.ConvertNullToDBNull Propriedade

Definição

Obtém ou define um valor que indica se os valores Parameter passados para uma operação de atualização, inserção ou exclusão são automaticamente convertidos de null para o valor Value.Gets or sets a value indicating whether Parameter values that are passed to an update, insert, or delete operation are automatically converted from null to the Value value.

public:
 property bool ConvertNullToDBNull { bool get(); void set(bool value); };
public bool ConvertNullToDBNull { get; set; }
member this.ConvertNullToDBNull : bool with get, set
Public Property ConvertNullToDBNull As Boolean

Valor da propriedade

Boolean

true, se null em Parameter objetos passados para o ObjectDataSourceView for automaticamente convertido para o Value valor; caso contrário, false .true, if null in Parameter objects passed to the ObjectDataSourceView is automatically converted to the Value value; otherwise, false. O padrão é false.The default is false.

Comentários

Não Converter null para o DBNull.Value valor pode resultar em erros em tempo de execução.Not converting null to the DBNull.Value value can result in errors at run time. Use a ConvertNullToDBNull propriedade para indicar se os Parameter valores que são passados para uma operação de atualização, inserção ou exclusão são automaticamente convertidos de null para o DBNull.Value valor.Use the ConvertNullToDBNull property to indicate whether the Parameter values that are passed to an update, insert, or a delete operation are automatically converted from null to the DBNull.Value value. Para obter mais informações, consulte ObjectDataSource.ConvertNullToDBNull.For more information, see ObjectDataSource.ConvertNullToDBNull.

Aplica-se a

Confira também