Aracılığıyla paylaş


DbProviderServices.DatabaseExists Yöntem

Tanım

Belirli bir veritabanının sunucuda var olup olmadığını ve storeItemCollection içinde bulunan şema nesnelerinin oluşturulup oluşturulmadığını belirten bir değer döndürür.

public:
 bool DatabaseExists(System::Data::Common::DbConnection ^ connection, Nullable<int> commandTimeout, System::Data::Metadata::Edm::StoreItemCollection ^ storeItemCollection);
public bool DatabaseExists (System.Data.Common.DbConnection connection, int? commandTimeout, System.Data.Metadata.Edm.StoreItemCollection storeItemCollection);
member this.DatabaseExists : System.Data.Common.DbConnection * Nullable<int> * System.Data.Metadata.Edm.StoreItemCollection -> bool
Public Function DatabaseExists (connection As DbConnection, commandTimeout As Nullable(Of Integer), storeItemCollection As StoreItemCollection) As Boolean

Parametreler

connection
DbConnection

Varlığı bu yöntemle doğrulanan bir veritabanına bağlantı.

commandTimeout
Nullable<Int32>

Veritabanının varlığını belirlemek için gereken tüm komutlar için yürütme zaman aşımı.

storeItemCollection
StoreItemCollection

Varlığı bu yöntemle belirlenen veritabanında bulunan tüm depo öğelerinin koleksiyonu.

Döndürülenler

true sağlayıcının veritabanını yalnızca bağlantıya göre çıkarabilmesi durumunda.

Şunlara uygulanır