first commit
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user