first commit

This commit is contained in:
2026-04-16 21:05:21 +04:30
commit 49591985ac
283 changed files with 12716 additions and 0 deletions
@@ -0,0 +1,12 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class DateTimeConverter : ValueConverter<DateTimeVO, DateTime>
{
public DateTimeConverter()
: base(x=>x.Value, x=> DateTimeVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class DescriptionConverter : ValueConverter<DescriptionVO, string>
{
public DescriptionConverter()
: base(x=>x.Value, x=> DescriptionVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class EmailConverter : ValueConverter<EmailVO, string>
{
public EmailConverter()
: base(x=>x.Value, x=> EmailVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class ModuleNameConverter : ValueConverter<ModuleNameVO, ModuleNamesEnum>
{
public ModuleNameConverter()
: base(x=>x.Value, x=> ModuleNameVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class PhoneNumberConverter : ValueConverter<PhoneNumberVO, string>
{
public PhoneNumberConverter()
: base(x=>x.Value, x=> PhoneNumberVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class TelephoneConverter : ValueConverter<TelephoneVO, string>
{
public TelephoneConverter()
: base(x=>x.Value, x=> TelephoneVO.CreateNew(x))
{
}
}
@@ -0,0 +1,13 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using System.Linq.Expressions;
using Vizhvizh.Shared.Domain.ValueObjects;
namespace Vizhvizh.Shared.Infrastructure.EF.Configurations.Converters;
public class TitleConverter : ValueConverter<TitleVO, string>
{
public TitleConverter()
: base(x=>x.Value, x=> TitleVO.CreateNew(x))
{
}
}
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\VichVich.BuildingBlocks.Infrastructure\Vizhvizh.BuildingBlocks.Infrastructure.csproj" />
<ProjectReference Include="..\Vichvich.Shared.Application\Vizhvizh.Shared.Application.csproj" />
</ItemGroup>
</Project>