Skip to content

About

EntityFrameworkCore provider for multitier applications. Eliminates the need to handcraft custom CRUD and query APIs for client-server apps by letting your client frontend interact with a standard DbContext.

Topics

Resources

Contributing

Security policy

Stars

19 stars

Watchers

1 watching

Forks

Latest commit

 

History

2,023 Commits

Folders and files

Repository files navigation

InfoCarrier.Core is an Entity Framework Core provider for client applications that use a database through an application server. Write LINQ and save tracked changes through one generic server endpoint, without a controller for every entity. The database driver and connection string stay on the server.

Version 11.0.0 requires .NET 11 and Entity Framework Core 11. See the installation guide for package setup and the 11.0 release notes for changes from 10.3. Version 11 is a breaking upgrade: update configuration, query registrations, and both deployed applications. Follow the upgrade guide before updating a 10.3 application.

Basic usage

Both applications share a context and entity model. On the client:

using var http = new HttpClient();
IInfoCarrierClient client = InfoCarrierClient.Create(http, o =>
    o.WithEndpoint("https://your-app-server/infocarrier"));

var options = new DbContextOptionsBuilder<ShopContext>().UseInfoCarrier(client).Options;
await using var context = new ShopContext(options);

var recent = await context.Orders
    .Where(o => o.Customer!.Country == "Germany")
    .OrderByDescending(o => o.PlacedOn)
    .Take(20)
    .ToListAsync();

if (recent.Count > 0)
{
    recent[0].Freight = 0m;
    await context.SaveChangesAsync();
}

The server registers its real database context, calls AddInfoCarrierServer<ShopContext>(), and maps app.MapInfoCarrier(). The complete SQLite tutorial supplies imports, project setup, model code, seed data, and a save followed by a fresh read.

Features and limits

Queries, saves, relationship loading, transactions, savepoints, and supported bulk operations run through the server. Asynchronous non-tracking queries can stream results. Supported final projections can run locally. Filtering, ordering, grouping, joins, and equality must run on the server unless the application explicitly chooses local execution.

HTTP is included. Custom transports implement both Send and SendAsync. The server's database provider determines which queries it can translate. Read limitations, security, and client/server compatibility before adopting.

Credits

Built on Entity Framework Core.

InfoCarrier.Core 1.0 to 3.1, by on/off it-solutions gmbh, used Remote.Linq and aqua-core by Christof Senn. The current implementation uses its own serializer.

MIT, Copyright (c) Alexander Zabluda. See license.txt.

Support

For questions or bugs, open an issue. Report vulnerabilities through a private advisory. See SECURITY.md for scope and supported versions.

About

EntityFrameworkCore provider for multitier applications. Eliminates the need to handcraft custom CRUD and query APIs for client-server apps by letting your client frontend interact with a standard DbContext.

Topics

Resources

Contributing

Security policy

Stars

19 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages