Iyu.FileServer 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Iyu.FileServer --version 0.4.0
                    
NuGet\Install-Package Iyu.FileServer -Version 0.4.0
                    
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="Iyu.FileServer" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Iyu.FileServer" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Iyu.FileServer" />
                    
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 Iyu.FileServer --version 0.4.0
                    
#r "nuget: Iyu.FileServer, 0.4.0"
                    
#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 Iyu.FileServer@0.4.0
                    
#: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=Iyu.FileServer&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Iyu.FileServer&version=0.4.0
                    
Install as a Cake Tool

iyu-framework-v5

Runtime library for the Iyu stack. Consumed by apps generated from M3L models via mdd-booster. Provides a single AddIyuMainServer entry point that wires EF Core, OData, and GraphQL on top of generator-produced entities.

Layers

Project Role
Iyu.Core IyuEntity base class, marker attributes ([Lookup], [Rollup], [Computed], [Reference]), value objects (PhoneNumber, EmailAddress, WebUrl)
Iyu.Data IyuDbContext base + IyuTimestampInterceptor (automatic CreatedAt/UpdatedAt) + EF Core ValueConverters for the value objects
Iyu.Server.OData IyuEdmModelBuilder.AddEntityPair<TRead,TWrite>(setName) + generic IyuODataController<TRead,TWrite> (CRUD)
Iyu.Server.GraphQL IyuGraphQLSchemaBuilder.AddEntityPair<TRead,TWrite>(queryName, mutationPrefix) (HotChocolate-based)
Iyu.MainServer Composite — AddIyuMainServer / UseIyuMainServer

Minimum consumer

using Iyu.MainServer;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddIyuMainServer<YesungDbContext>(
    configureDb: db => db.UseSqlServer(builder.Configuration.GetConnectionString("Yesung")),
    configure: options =>
    {
        options.ODataModel.AddEntityPair<OrderExt, Order>("Orders");
        options.GraphQL .AddEntityPair<OrderExt, Order>("orders", "order");
        // ...additional pairs, or a generated RegisterEntities(options) call
    });

var app = builder.Build();
app.UseIyuMainServer();
app.Run();

Resulting endpoints:

  • GET /$data/$metadata — OData EDM document
  • GET /$data/Orders?$filter=Status eq 'confirmed' — OData query
  • POST /graphql with { orders { ... } } — GraphQL query

Read/Write pair model

Each logical entity has two CLR types:

  • Write type (e.g. Order) — mapped to the base SQL table. Contains only stored fields. Used for POST/PATCH/DELETE inside the controller.
  • Read type (e.g. OrderExt) — mapped to a SQL view. Contains stored fields plus lookups/rollups/computed fields. Exposed as the OData entity set and GraphQL query field.

The controller copies overlapping properties from the read body to a fresh write entity using reflection; extras are dropped. CreatedAt/UpdatedAt/Id are explicitly excluded because they are owned by the interceptor or the caller's explicit assignment.

See claudedocs/cycle-logs/cycle-01.mdcycle-14.md for the step-by-step rebuild history; D:\data\mdd-booster\claudedocs\plans\2026-04-05-mdd-booster-rewrite-design.md for the full design spec.

Status

Plan 2 complete (2026-04-05). Runtime scaffold exists, unit-tested (57 tests passing), and an HTTP E2E smoke through Yesung.MainServer verified the composition end-to-end.

Next: Plan 3 (mdd-booster C# entity/DbContext generator) starting at cycle 15 — see claudedocs/cycle-logs/ROADMAP.md.

Build & test

dotnet build IyuFramework.slnx
dotnet test  IyuFramework.slnx

All warnings are treated as errors across every project in the solution.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.10.1 23 8/1/2026
0.10.0 26 8/1/2026
0.9.0 41 7/30/2026
0.8.0 44 7/28/2026
0.7.0 95 7/19/2026
0.6.1 88 7/19/2026
0.6.0 96 7/17/2026
0.5.0 98 7/10/2026
0.4.1 97 7/7/2026
0.4.0 104 7/7/2026
0.3.0 99 7/4/2026