JJMasterData is an open-source .NET library to help you create dynamic CRUDs quickly from data dictionaries (database metadata), along with other boilerplate-intensive things like exporting and importing data.
The repository also ships JJMasterData.CommandLine, a dotnet tool that exposes the jjmasterdata command for import, export, diff, and interactive workflows.
Useful Links
What is a Data Dictionary?
Learn more in this blog article about the concept on which JJMasterData works.
Features
- Components generated at runtime 🔥
- Data exportation & importation ↔️
- Database script generation ✍️
- Plugins support by interfaces 🪄
- Multiple forms using relationships⛓️
Getting Started
https://github.com/JJConsulting/JJMasterData/assets/28662273/9b874c9d-2a2f-4d3b-9e78-846db446def2
- Create an ASP.NET Core project (it can be Blazor, MVC, Razor Pages, whetever you like…)
- Install
JJMasterData.Web
dotnet add package JJMasterData.Web
- Configure your
IConfiguration source with a connection string at JJMasterData:ConnectionString
{
"JJMasterData": {
"DataDictionaryTableName": "MasterData",
"ConnectionString": "Server=localhost;Database=JJMasterData;Integrated Security=True;Trust Server Certificate=true",
"ReadProcedurePattern": "{tablename}Get",
"WriteProcedurePattern": "{tablename}Set"
}
}
- At
Program.cs add the following lines:
using JJMasterData.Web.Configuration;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddJJMasterDataWeb();
///...
var app = builder.Build();
///...
//Required middlewares
app.UseStaticFiles();
app.MapDataDictionary();
app.MapMasterData();
await app.UseMasterDataSeedingAsync();
app.Run();
- Create a
wwwroot folder if your project is empty
- Run the project and visit
/DataDictionary/Element/Index

You can get the appsettings.json schema URL from here
See all steps in documentation.
Building from source 🧰
-
Install .NET 8
-
Install NodeJS
-
Clone this git repository
-
Open JJMasterData.sln file at your IDE
-
Set the WebEntryPoint as startup project
-
Run the project with the Development launch profile.
The example host runs only in Development and accepts loopback requests for local host names. Use a disposable database and run it directly on your machine. For a deployed application, create your own host and require authorization for the Data Dictionary and MasterData routes.
Special Thanks
Code contributors

Bugs and feature requests 🐛
Have a bug or a feature request?
Please first search for existing and closed issues.
If your problem or idea is not addressed yet, please open a new issue.
评论