private async Task InstanceSchemaRecordCreatedAsync(CancellationToken cancellationToken)
 {
     if (!await _schemaManagerDataStore.InstanceSchemaRecordExistsAsync(cancellationToken))
     {
         throw new SchemaManagerException(Resources.InstanceSchemaRecordErrorMessage);
     }
 }
Example #2
0
 private async Task InstanceSchemaRecordCreatedAsync(CancellationToken cancellationToken)
 {
     try
     {
         if (!await _schemaManagerDataStore.InstanceSchemaRecordExistsAsync(cancellationToken))
         {
             throw new SchemaManagerException(Resources.InstanceSchemaRecordErrorMessage);
         }
     }
     catch (SqlException e) when(e.Message.Contains("Invalid object name", StringComparison.OrdinalIgnoreCase))
     {
         // Table doesn't exist
         throw new SchemaManagerException(Resources.InstanceSchemaRecordTableNotFound, e);
     }
 }