DbProviderFactory.CanCreateBatch Property

Definition

Gets a value that indicates whether this DbProviderFactory instance supports the DbBatch class.

C#
public virtual bool CanCreateBatch { get; }

Property Value

true if this instance supports the DbBatch class; otherwise, false. The default is false.

Remarks

This property returns false by default; providers that implement DbBatch should override this to return true.

Applies to

Product Versions
.NET 6, 7, 8, 9, 10