AFLCore 0.0.1-alpha2
Please use the default Umbraco Models Builder instead.
See the version list below for details.
dotnet add package AFLCore --version 0.0.1-alpha2
NuGet\Install-Package AFLCore -Version 0.0.1-alpha2
<PackageReference Include="AFLCore" Version="0.0.1-alpha2" />
paket add AFLCore --version 0.0.1-alpha2
#r "nuget: AFLCore, 0.0.1-alpha2"
// Install AFLCore as a Cake Addin #addin nuget:?package=AFLCore&version=0.0.1-alpha2&prerelease // Install AFLCore as a Cake Tool #tool nuget:?package=AFLCore&version=0.0.1-alpha2&prerelease
AFL
Introduction
Getting Started
- Provide a Default Controller Inheriting from UmbracoDefaultControllerbase.
- In startup, while ConfiguringServices call the extension method
services.InitializeAFL<TDefaultController>(IConfugration)
where TDefaulcontroller is your implementation from step1. - In Configure call
app.UseAFL(new[] { GetType().Assembly /*.. other assemblies */ })
Its adviced to supply an assembly ending in .Core to store your businesslogic models for the models builder
AFL Basics
Classes representing renderable nodes should be decorated with the [Renderable]
Attribute. Every site should have atleast 1 renderable root.
TODO: Provide example
Dependency injection.
Basic AFL models now support dependency injection in the constructor. The first argument to a given models constructor should always be IPublishedContent node
ModelBuilder notes
Currently the models builder will first look for a project ending in .Core and write the models there. If none is found it will take the first defined in step 3.
Eventhandling notes
The base events are handled. We could add support for moving trashing and others in the future.
Search
Custom indexes should in theory work, but only the default external index is currently tested.
To search decorate your models properties with the [Searchable]
attribute.
In your controller or your model you can now inject the Searcher<TResultType>
class, which will return results of type TResultType
Improvement Proposals.
- IOptions support.
- After this JSON Schema could be nice, to improve discoverability
- ModelBuilder, Define path of new models in AppSettings, before looking for a .Core Assembly, or simply taking the first assembly defined.
- A Wrapper for Element types more logical than AFLModelBase - too many properties doesnt fit ElementTypes.
Manually packing for nuspec
dotnet pack -p:NuspecFile=AFLUmbracoWeb.nuspec
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net5.0
- HtmlAgilityPack (>= 1.11.34)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Mvc.ViewFeatures (>= 2.2.0)
- System.Runtime.Caching (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AFLCore:
Package | Downloads |
---|---|
AFLCoreUmbraco
AFL for Umbraco |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.0.1-alpha4 | 166 | 7/16/2022 | |
0.0.1-alpha3 | 153 | 5/3/2022 | |
0.0.1-alpha2 | 188 | 12/21/2021 | |
0.0.1-alpha | 164 | 12/21/2021 |