@{
ViewData["Title"] = "Database Inspector";
}
Database Structure Inspector
@if (ViewBag.Error != null)
{
Error: @ViewBag.Error
}
else
{
Tables in Database:
@if (ViewBag.Tables != null)
{
@foreach (string table in ViewBag.Tables)
{
- @table @(table.ToLower().Contains("image") ? " (IMAGE TABLE FOUND!)" : "")
}
Total tables found: @ViewBag.Tables.Count
}
Image Table Status:
Image table exists: @ViewBag.ImageTableExists
@if (ViewBag.ImageTableName != null)
{
Image table name: @ViewBag.ImageTableName
}
@if (ViewBag.ImageTableColumns != null)
{
Image Table Columns:
@foreach (string column in ViewBag.ImageTableColumns)
{
- @column
}
@if (ViewBag.ImageRecordCount != null)
{
Sample records found: @ViewBag.ImageRecordCount
}
}
@if (ViewBag.ImageTableError != null)
{
Image Table Error: @ViewBag.ImageTableError
}
}
Back to Recipes