SqlClientFactory.CreateCommandBuilder 方法

定义

返回强类型的 DbCommandBuilder 实例。

public:
 override System::Data::Common::DbCommandBuilder ^ CreateCommandBuilder();
public override System.Data.Common.DbCommandBuilder CreateCommandBuilder ();
abstract member CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
override this.CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
override this.CreateCommandBuilder : unit -> System.Data.Common.DbCommandBuilder
Public Overrides Function CreateCommandBuilder () As DbCommandBuilder

返回

的新强类型实例 DbCommandBuilder

示例

以下代码片段返回强类型 DbCommandBuilder 实例:

SqlClientFactory newFactory = SqlClientFactory.Instance;
DbCommandBuilder cmd = newFactory.CreateCommandBuilder();

适用于