Oceyra.Dbml.Generator 0.3.17

dotnet add package Oceyra.Dbml.Generator --version 0.3.17
                    
NuGet\Install-Package Oceyra.Dbml.Generator -Version 0.3.17
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oceyra.Dbml.Generator" Version="0.3.17" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oceyra.Dbml.Generator" Version="0.3.17" />
                    
Directory.Packages.props
<PackageReference Include="Oceyra.Dbml.Generator" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Oceyra.Dbml.Generator --version 0.3.17
                    
#r "nuget: Oceyra.Dbml.Generator, 0.3.17"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Oceyra.Dbml.Generator@0.3.17
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Oceyra.Dbml.Generator&version=0.3.17
                    
Install as a Cake Addin
#tool nuget:?package=Oceyra.Dbml.Generator&version=0.3.17
                    
Install as a Cake Tool

Oceyra DBML Source Generator

This generator allow to build the DbContext for entity framework core, based on a DBML from DbDiagram or ChartDb

Build status

Usage Sample

In schema/TaskManagerDb.dbml

Table "projects" {
  "project_id" varchar(500) [pk, not null] [ref: < "task_results"."project_id"]
  "project_name" varchar(500) [not null]
  "requirements" varchar(500)
  "task_plan" varchar(500)
  "status" varchar(500) [not null]
  "created_at" timestamp [not null]
  "updated_at" timestamp
}

Table "task_results" {
  "project_id" varchar(500) [not null]
  "task_id" varchar(500) [not null] [ref: < "task_dependencies"."dependency_task_id"]
  "name" varchar(500) [not null]
  "description" varchar(500)
  "agent_type" varchar(500) [not null]
  "priority" varchar(500)
  "estimated_hours" bigint
  "result_data" varchar(500)
  "status" varchar(500) [not null]
  "created_at" timestamp [not null]
  "updated_at" timestamp

  Indexes {
    (task_id, agent_type, project_id) [unique, name: "public_idx_task_results_task_id_agent_type"]
  }
}

Table "task_dependencies" {
  "id" bigint [pk, not null]
  "project_id" varchar(500) [not null]
  "task_id" varchar(500) [not null]
  "dependency_task_id" varchar(500) [not null]
  "created_at" timestamp
  "updated_at" timestamp

  Indexes {
    (task_id, dependency_task_id, project_id) [unique, name: "public_index_1"]
  }
}

In the *.csproj, flag the DBML as an AdditionalFiles

  <ItemGroup>
    <AdditionalFiles Include="schema\TaskManagerDb.dbml" />
  </ItemGroup>

In TaskManagerDbContext.cs

namespace Oceyra.Dbml.Generator.Samples;

[DbmlSource("schema/TaskManagerDb.dbml")]
public partial class TaskManagerDbContext : DbContext { }

Sponsors

Buy Me a Coffee

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.17 194 11/7/2025
0.3.16 192 10/9/2025
0.3.15 198 10/6/2025
0.3.14 202 9/25/2025
0.3.13 235 8/8/2025
0.3.12 237 8/8/2025
0.3.11 280 8/6/2025
0.3.10 227 8/4/2025
0.3.9 224 8/4/2025
0.3.8 220 8/4/2025
0.3.7 214 8/4/2025
0.3.6 351 8/4/2025 0.3.6 is deprecated because it has critical bugs.
0.3.5 346 8/4/2025 0.3.5 is deprecated because it has critical bugs.
0.3.4 247 8/3/2025 0.3.4 is deprecated because it has critical bugs.
0.3.3 361 7/26/2025 0.3.3 is deprecated because it has critical bugs.