public static SqlServerValidationToolkitContext Create()
        {
            SqlServerValidationToolkitContext ctx;

            if (Settings.Default.StoreMetadataInSqlServer)
            {
                ctx = SqlServerValidationToolkitContext.Create(Settings.Default.MetadataDatabaseConnectionString);
            }
            else
            {
                string databaseFileName = "SqlServerValidationToolkit.Model.Context.SqlServerValidationToolkitContext.sdf";
                string sqlServerCompactConnectionString = string.Format("Data Source={0}", databaseFileName);

                ctx = new SqlServerValidationToolkitContext(sqlServerCompactConnectionString);
                if (!File.Exists(databaseFileName))
                {
                    ctx.Database.CreateIfNotExists();
                }
            }

            DatabaseInitializer.AddErrorTypes(ctx);

            return(ctx);
        }