AdaloExtensionPack.Core
0.2.11
See the version list below for details.
dotnet add package AdaloExtensionPack.Core --version 0.2.11
NuGet\Install-Package AdaloExtensionPack.Core -Version 0.2.11
<PackageReference Include="AdaloExtensionPack.Core" Version="0.2.11" />
paket add AdaloExtensionPack.Core --version 0.2.11
#r "nuget: AdaloExtensionPack.Core, 0.2.11"
// Install AdaloExtensionPack.Core as a Cake Addin #addin nuget:?package=AdaloExtensionPack.Core&version=0.2.11 // Install AdaloExtensionPack.Core as a Cake Tool #tool nuget:?package=AdaloExtensionPack.Core&version=0.2.11
AdaloExtensionPack
Helpers to connect C# Web app to Adalo tables API
Usage
Classic table
In the Startup.cs file add in the method ConfigureServices() :
services.AddAdalo(x =>
{
x.AddApplication("[your Adalo App Id]", "[your API token here]")
.AddTable<SomeEntity>("[table Id]", cached: false)
.AddTable<SomeEntity>("[table Id 2]", cached: true);
});
Then inject IAdaloTableService<SomeEntity>
in your controller/services to connect directly to Adalo tables API,
or IAdaloTableCacheService<SomeEntity>
to add a cache layer between Adalo and your app.
Note: SomeEntity need to inherit from
AdaloExtensionPack.Core.Adalo.AdaloEntity
Cached table
If the cached
parameter is set to the true
value in the call to AddTable
, a controller with methods to create,
read, update and delete this type of entities will be generated:
These controllers can be used as external collections in Adalo to improve performances of your tables.
You can also access theses cached tables from your code with the class AdaloTableCacheService<SomeEntity>
Views
Views are filtered and mapped collections available through a controller GET action.
You can create a view by add this line inside the AddAdalo()
call:
x.AddApplication("[your Adalo App Id]", "[your API token here]")
.AddView<SomeContext, SomeEntity, SomeProjection>(
serviceProvider => new SomeContext(serviceProvider), //Build a context which be reused in predicate and mapping
(ctx, entity) => true, // Predicate
(ctx, entity) => new SomeProjection(entity)); // Mapping
This will generate this method:
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- CaseExtensions (>= 1.1.0)
- Humanizer.Core (>= 2.14.1)
- SkiaSharp (>= 2.88.8)
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.2.17 | 73 | 8/4/2024 |
0.2.16 | 109 | 5/24/2024 |
0.2.15 | 108 | 5/20/2024 |
0.2.14 | 98 | 5/20/2024 |
0.2.12 | 85 | 5/16/2024 |
0.2.11 | 88 | 5/16/2024 |
0.2.10 | 103 | 5/14/2024 |
0.2.9 | 77 | 5/14/2024 |
0.2.8 | 86 | 5/14/2024 |
0.2.7 | 90 | 5/14/2024 |
0.2.6 | 92 | 5/14/2024 |
0.2.5 | 93 | 5/13/2024 |
0.2.4 | 94 | 5/13/2024 |
0.2.3 | 95 | 5/13/2024 |
0.2.2 | 93 | 5/13/2024 |
0.2.1 | 69 | 5/13/2024 |
0.2.0 | 79 | 5/13/2024 |
0.1.1 | 353 | 4/9/2021 |
0.1.0 | 274 | 4/9/2021 |