DbUp.Support.Firebird.FirebirdTableJournal.VerifyTableExistsCommand(System.Data.IDbCommand)

Here are the examples of the csharp api class DbUp.Support.Firebird.FirebirdTableJournal.VerifyTableExistsCommand(System.Data.IDbCommand) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: DbUp
Source File: FirebirdTableJournal.cs
private bool DoesTableExist()
        {
            return connectionManager().ExecuteCommandsWithManagedConnection(dbCommandFactory =>
            {
                try
                {
                    using (var command = dbCommandFactory())
                    {
                        return VerifyTableExistsCommand(command);
                    }
                }
                // can't catch FbException here because this project does not depend upon Firebird
                catch (DbException)
                {
                    return false;
                }
            });
        }