EZms.Core
1.0.4
There is a newer version of this package available.
See the version list below for details.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
.NETCoreApp 2.2
- AutoMapper.Extensions.Microsoft.DependencyInjection (>= 6.1.1)
- Microsoft.AspNetCore.Identity.EntityFrameworkCore (>= 2.2.0)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.StaticFiles (>= 2.2.0)
- Microsoft.EntityFrameworkCore (>= 2.2.6)
- Microsoft.EntityFrameworkCore.Design (>= 2.2.6)
- Microsoft.EntityFrameworkCore.SqlServer (>= 2.2.6)
- Microsoft.Extensions.FileProviders.Embedded (>= 2.2.0)
- Newtonsoft.Json (>= 12.0.2)
- Nito.AsyncEx.Context (>= 5.0.0)
- Nito.AsyncEx.Coordination (>= 5.0.0)
- Nito.AsyncEx.Tasks (>= 5.0.0)
- WindowsAzure.Storage (>= 9.3.3)
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.