What problem does it solve?
This Skill provides practical patterns for bootstrapping BeepDM in WinForms applications by initializing IDMEEditor and wiring up database connections, migrations, and service patterns. It reduces boilerplate and accelerates getting a BeepDM-powered UI up and running.
Core Features & Use Cases
- Two primary setup patterns: a simple DMEEditor initialization for lightweight desktop apps and a full BeepDesktopServices-based service pattern for feature-rich applications with routing, themes, and modular modules.
- Includes guidance on creating and configuring database connections, performing migrations via MigrationManager, and integrating BeepDM components into WinForms projects.
- Use Case: You are building a WinForms app that needs a ready-made data-management backend; this Skill shows how to instantiate DMEEditor, configure a SQLite connection, open the data source, and apply migrations to create the required entity schema.
Quick Start
Follow steps to bootstrap BeepDM in a WinForms application:
- Create a new DMEEditor instance.
- Create and register a SQLite connection via AppDbContext.CreateSqliteConnectionProps(editor) and add it to editor.ConfigEditor.DataConnections.
- Open the data source with editor.OpenDataSource(connectionName) and obtain the IDataSource via editor.GetDataSource(connectionName).
- Create a MigrationManager(editor, dataSource) and call EnsureDatabaseCreated(namespaceName, detectRelationships, progress) to ensure the database schema exists.
- If needed, initialize themes with BeepThemesManager and proceed to show the main form.