다음을 통해 공유


ObjectContext.DatabaseExists 메서드

정의

현재 저장소 연결의 데이터베이스로 지정된 데이터베이스가 저장소에 있는지 확인합니다. 대부분의 실제 작업은 현재 저장소 연결에 대한 DbProviderServices 구현을 통해 수행됩니다.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public virtual bool DatabaseExists ();
abstract member DatabaseExists : unit -> bool
override this.DatabaseExists : unit -> bool
Public Overridable Function DatabaseExists () As Boolean

반환

데이터베이스가 있으면 true입니다. 그렇지 않으면 false입니다.

특성

적용 대상