EZms.Core 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package EZms.Core --version 1.0.4                
NuGet\Install-Package EZms.Core -Version 1.0.4                
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="EZms.Core" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EZms.Core --version 1.0.4                
#r "nuget: EZms.Core, 1.0.4"                
#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.
// Install EZms.Core as a Cake Addin
#addin nuget:?package=EZms.Core&version=1.0.4

// Install EZms.Core as a Cake Tool
#tool nuget:?package=EZms.Core&version=1.0.4                

EZms.Core

This is the Core part of the EZms CMS platform, for more information on using EZms as a whole, please to to EZms or read the EZms wiki

To enable the UI you need to follow the instructions for the EZms.UI project

The following needs to be added to the .NET Core startup to enable EZms.Core:

public Startup(IConfiguration configuration, IHostingEnvironment environment)
{
    Configuration = configuration;
    HostingEnvironment = environment;
}

public IConfiguration Configuration { get; }
public IHostingEnvironment HostingEnvironment { get; }

public void ConfigureServices(IServiceCollection services) {
    
    services.AddMemoryCache();

    var databaseConnectionString = Configuration.GetConnectionString("ConnectionStringName");

    services.AddDbContextPool<EZmsContext>(options =>
    {
        options.UseSqlServer(databaseConnectionString,
            sqlServerOptionsAction: sqlOptions =>
            {
                sqlOptions.MigrationsAssembly(typeof(EZmsContext).Assembly.FullName);
                sqlOptions.EnableRetryOnFailure(
                    maxRetryCount: 10,
                    maxRetryDelay: TimeSpan.FromSeconds(30),
                    errorNumbersToAdd: null);
            });
    });

    services.AddEZms(config =>
    {
        config.AzureBlobOptions = new AzureBlobOptions {    
            ConnectionString = blobStorageConnectionString,
            DocumentContainer = "files"
        };
    });

    
    services.AddSingleton(HostingEnvironment);

    services.SetupEZmsAutomapper()
            //If needed this is where you add the EZms.UI middleware 
            .SetupEZmsServiceLocator();
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env) {
    
    // EZms.Core middlware
    app.UseEZms();

    //Seed if needed
    using (var serviceScope = app.ApplicationServices.GetService<IServiceScopeFactory>().CreateScope())
    {
        var ezContext = serviceScope.ServiceProvider.GetRequiredService<EZmsContext>();
        ezContext.EnsureSeeded(HostingEnvironment.ContentRootPath);
    }
}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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. 
.NET Core netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on EZms.Core:

Package Downloads
EZms.UI

EZms UI interface

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.13 644 3/14/2020
1.0.12 704 2/26/2020
1.0.11 712 2/26/2020
1.0.9 698 2/5/2020
1.0.8 1,159 1/27/2020
1.0.7 609 1/26/2020
1.0.6 873 1/25/2020
1.0.5 703 1/22/2020
1.0.4 662 11/9/2019