Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for new upgrade of the core package #9 #10

Merged
merged 12 commits into from
Aug 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
using EasyMicroservices.AuthenticationsMicroservice.Database.Entities;
using Microsoft.EntityFrameworkCore;
using EasyMicroservices.Cores.Relational.EntityFrameworkCore;

namespace EasyMicroservices.AuthenticationsMicroservice.Database.Contexts
{
public class AuthenticationsContext : DbContext
public class AuthenticationsContext : RelationalCoreContext
{
IDatabaseBuilder _builder;
public AuthenticationsContext(IDatabaseBuilder builder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@

namespace EasyMicroservices.AuthenticationsMicroservice.Database.Schemas
{
public class UserSchema : IUniqueIdentitySchema
public class UserSchema : IUniqueIdentitySchema, ISoftDeleteSchema, IDateTimeSchema
{
public string UserName { get; set; }
public string Password { get; set; }

public string UniqueIdentity { get; set; }
public DateTime CreationDateTime { get; set; }
public DateTime? ModificationDateTime { get; set; }
public bool IsDeleted { get; set; }
public DateTime? DeletedDateTime { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@

<ItemGroup>
<PackageReference Include="EasyMicroservices.Configuration" Version="0.0.0.2" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="EasyMicroservices.Cores.Relational.EntityFrameworkCore" Version="0.0.0.3" />
<PackageReference Include="EasyMicroservices.Database.EntityFrameworkCore" Version="0.0.0.6" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="7.0.10" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.10" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@

namespace EasyMicroservices.AuthenticationsMicroservice.Contracts.Common
{
public class UserContract : IUniqueIdentitySchema
public class UserContract : IUniqueIdentitySchema, ISoftDeleteSchema, IDateTimeSchema
{
public long Id { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string UniqueIdentity { get; set; }
public DateTime CreationDateTime { get; set; }
public DateTime? ModificationDateTime { get; set; }
public bool IsDeleted { get; set; }
public DateTime? DeletedDateTime { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<ItemGroup>
<PackageReference Include="EasyMicroservices.Cores.AspCoreApi" Version="0.0.0.12" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="EasyMicroservices.Mapper.CompileTimeMapper" Version="0.0.0.5" />
<PackageReference Include="EasyMicroservices.Mapper.SerializerMapper" Version="0.0.0.2" />
<PackageReference Include="EasyMicroservices.Serialization.Newtonsoft.Json" Version="0.0.0.3" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="7.0.9" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved

</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.14" />
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="EasyMicroservices.WhiteLabelsMicroservice.Clients" Version="0.0.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.8" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EasyMicroservices.Cores.AspCoreApi" Version="0.0.0.12" />
<PackageReference Include="EasyMicroservices.ServiceContracts" Version="0.0.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.9" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.9" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.9">
<PackageReference Include="EasyMicroservices.Cores.Database" Version="0.0.0.15" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="EasyMicroservices.Cores.AspCoreApi" Version="0.0.0.13" />
<PackageReference Include="EasyMicroservices.ServiceContracts" Version="0.0.0.6" />
MahdiyarGHD marked this conversation as resolved.
Show resolved Hide resolved
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.10" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.10" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.10">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
Loading