.NET 8
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace zero.Applications;
|
||||
|
||||
public class ApplicationStore : EntityStore<Application>, IApplicationStore
|
||||
{
|
||||
public ApplicationStore(IStoreContext context) : base(context)
|
||||
{
|
||||
Config.Database = Options.For<RavenOptions>().Database;
|
||||
}
|
||||
|
||||
|
||||
//protected override void ValidationRules(ZeroValidator<Application> validator)
|
||||
//{
|
||||
// validator.RuleFor(x => x.Name).NotEmpty().Length(2, 50);
|
||||
// validator.RuleFor(x => x.FullName).MaximumLength(120);
|
||||
// validator.RuleFor(x => x.Email).Email().NotEmpty().MaximumLength(120);
|
||||
// validator.RuleFor(x => x.Domains).NotEmpty();
|
||||
//}
|
||||
}
|
||||
|
||||
public interface IApplicationStore : IEntityStore<Application>
|
||||
{
|
||||
}
|
||||
@@ -8,7 +8,6 @@ internal class ZeroApplicationModule : ZeroModule
|
||||
public override void ConfigureServices(IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddScoped<IApplicationResolver, ApplicationResolver>();
|
||||
services.AddScoped<IApplicationStore, ApplicationStore>();
|
||||
services.AddScoped<IApplicationRegistry, ApplicationRegistry>();
|
||||
//services.AddOptions<ApplicationOptions>().Bind(configuration.GetSection("Zero:Applications"));
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PackageId>zero.Core</PackageId>
|
||||
<Version>0.1.0</Version>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<RootNamespace>zero</RootNamespace>
|
||||
<DebugType>embedded</DebugType>
|
||||
@@ -19,12 +19,12 @@
|
||||
</ItemGroup>-->
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ClosedXML" Version="0.96.0" />
|
||||
<PackageReference Include="FluentValidation" Version="11.1.0" />
|
||||
<PackageReference Include="ClosedXML" Version="0.102.2" />
|
||||
<PackageReference Include="FluentValidation" Version="11.9.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.7" />
|
||||
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.7" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
|
||||
<PackageReference Include="RavenDB.Client" Version="5.4.113" />
|
||||
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.3" />
|
||||
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.1">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PackageId>zero.Raven</PackageId>
|
||||
<Version>1.0.0</Version>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<RootNamespace>zero.Raven</RootNamespace>
|
||||
<DebugType>embedded</DebugType>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
<PackageId>zero</PackageId>
|
||||
<Version>1.0.0</Version>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
|
||||
<RootNamespace>zero</RootNamespace>
|
||||
<DebugType>embedded</DebugType>
|
||||
|
||||
Reference in New Issue
Block a user