{
  "id": "dotnet/ef-core-sqlite-no-net-changes",
  "signature": "Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: x'",
  "signature_zh": "Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite错误1：'没有这样的列：x'",
  "regex": "SQLite Error \\d+: 'no such column: .+'",
  "domain": "dotnet",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Entity Framework Core migrations are not applied to the SQLite database, so the actual schema does not match the model expectations, causing queries to reference non-existent columns.",
  "root_cause_type": "generic",
  "root_cause_zh": "Entity Framework Core迁移未应用到SQLite数据库，实际架构与模型预期不匹配，导致查询引用了不存在的列。",
  "versions": [
    {
      "version": "EF Core 6.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "EF Core 7.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "EF Core 8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "SQLite 3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding a new migration and updating the database without reconciling the migration history",
      "why_fails": "The migration history table in SQLite may be out of sync, causing EF to skip pending migrations.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    },
    {
      "action": "Deleting the database file and recreating it manually",
      "why_fails": "This loses all data and the migration history, but the error persists if the schema is not recreated via migrations.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Run 'dotnet ef database update' from the project directory to apply all pending migrations to the SQLite database.",
      "success_rate": 0.85,
      "how": "Run 'dotnet ef database update' from the project directory to apply all pending migrations to the SQLite database.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If migrations are missing, create an initial migration: 'dotnet ef migrations add InitialCreate' then run update.",
      "success_rate": 0.9,
      "how": "If migrations are missing, create an initial migration: 'dotnet ef migrations add InitialCreate' then run update.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Run 'dotnet ef database update' from the project directory to apply all pending migrations to the SQLite database.",
    "If migrations are missing, create an initial migration: 'dotnet ef migrations add InitialCreate' then run update."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/?tabs=dotnet-core-cli",
  "official_doc_section": null,
  "error_code": "0x80004005",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-03-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}