{"version":"1.0","type":"rich","title":"ROCBNDbContext.cs","description":"This example shows a read-only Entity Framework Core database context that defines the data model for an entity registry. The code maps three database tables—Entities, EntityBusinessActivities, and EntityOtherInformation—to corresponding DbSet properties, with configuration for indexes, required fields, and relationships. The context enforces its read-only nature by overriding SaveChanges to throw an exception, while OnModelCreating uses the Fluent API to specify table schemas, columns, and foreign key constraints. The example uses Entity Framework Core’s modelBuilder and DbContext APIs to expose the underlying database structure.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-851a4cceb65522dec36dd30acee911e9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}