Exemplo n.º 1
0
 /// <summary>
 ///     <para>
 ///         Asynchronously ensures that the database for the context does not exist. If it does not exist, no action is taken. If it does
 ///         exist then the database is deleted.
 ///     </para>
 ///     <para>
 ///         Warning: The entire database is deleted an no effort is made to remove just the database objects that are used by
 ///         the model for this context.
 ///     </para>
 /// </summary>
 /// <param name="cancellationToken">A <see cref="CancellationToken" /> to observe while waiting for the task to complete.</param>
 /// <returns>
 ///     A task that represents the asynchronous save operation. The task result contains true if the database is deleted,
 ///     false if it did not exist.
 /// </returns>
 public virtual Task <bool> EnsureDeletedAsync(CancellationToken cancellationToken = default(CancellationToken))
 => DatabaseCreator.EnsureDeletedAsync(cancellationToken);