AutoMapProperty/AutoMapPropertyHelper/IAutomappedAttribute.cs
2023-03-28 19:26:14 +02:00

18 lines
503 B
C#

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
namespace AutoMapPropertyHelper
{
public interface IAutomappedAttribute<TSource, TSelf>
{
public TSource ApplyTo(IServiceProvider providers, TSource value);
public TSelf ApplyFrom(IServiceProvider providers, TSource source);
public Expression<Func<TSource, TSelf>> GetProjectorFrom(IServiceProvider providers);
}
}