Object-relational mapped database initialization
Abstract
A balance is provided between automation of repetitive database creation and configuration efforts, on the one hand, and flexibility to depart from prior configurations, on the other hand, to assist developers with aspects of database initialization. An application domain includes data context instances, database connections, object models mapped by an object-relational mapper, and database initializers. Upon the first attempted runtime use of a particular database connection—data context instance—object model combination, a database initializer is invoked. Initializers may check to see if the database exists, (re)generate a database and schema based on the object model, determine whether the database is compatible with the current object model, delete the database and its schema, seed data, modify database indexes, and/or migrate an existing database, for example. A custom initializer can run developer-supplied code as desired to place the database in a known state for use by the application.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 5.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer system comprising: a logical processor; a memory in operable communication with the logical processor; a data context instance residing in the memory; a database connection residing in the memory; an object model residing in the memory, the object model mapped by an object-relational mapper; and an initialization monitor residing in the memory and having code which upon execution monitors for a first attempted use at runtime of the database connection with the data context instance and the object model.
- Claim 2Depends on #1
The system of claim 1 , wherein the system further comprises a database initializer which resides in the memory and is invocable by the initialization monitor.
- Claim 3Depends on #2
The system of claim 2 , wherein the database initializer comprises a default initializer that is free of code supplied by
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- "ADO.NET Entity Framework—Wikipedia, the free encyclopedia", Retrieved from <<http://en.wikipedia.org/wiki/ADO.NET—Entity—Framework>>, May 26, 2011, 10 Pages.
- "ADO.NET Entity Framework-Wikipedia, the free encyclopedia", Retrieved from >, May 26, 2011, 10 Pages.
- "EF 4.1 Code First Walkthrough", Retrieved from <<http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-code-first-walkthrough.aspx>>, Mar. 15, 2011, 8 Pages.
- "EF 4.1 Code First Walkthrough", Retrieved from >, Mar. 15, 2011, 8 Pages.
- "EF Feature CTP4 Released!", Retrieved from <<http://blogs.msdn.com/b/adonet/archive/2010/07/14/ctp4announcement.aspx>>, Jul. 14, 2010, 5 Pages.