0
0
RhSolutions-Api/RhSolutions.Api/Models/SkuConverter.cs

12 lines
243 B
C#

using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace RhSolutions.Models;
internal class SkuConverter : ValueConverter<ProductSku, string>
{
public SkuConverter()
: base(x => x.ToString(), x => new ProductSku(x))
{
}
}