Commit 9e2b6425 authored by 阿星Plus's avatar 阿星Plus

v1.0.2

parent e39e6615
......@@ -14,13 +14,19 @@
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/Meowv/.netcoreplus</PackageProjectUrl>
<PackageIconUrl>https://avatars2.githubusercontent.com/u/13010050</PackageIconUrl>
<PackageLicenseUrl>https://raw.githubusercontent.com/Meowv/.netcoreplus/master/LICENSE</PackageLicenseUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>plus;plus.automapper;.netcoreplus;</PackageTags>
<PackageReleaseNotes>Plus.AutoMapper</PackageReleaseNotes>
<Version>1.0.0</Version>
<Version>1.0.2</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
<DocumentationFile>Plus.AutoMapper.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
<DocumentationFile>Plus.AutoMapper.xml</DocumentationFile>
</PropertyGroup>
......
......@@ -41,14 +41,14 @@ namespace Plus.AutoMapper
{
lock (SyncObj)
{
Action<IMapperConfigurationExpression> configurer = configuration =>
void configurer(IMapperConfigurationExpression configuration)
{
FindAndAutoMapTypes(configuration);
foreach (var configurator in Configuration.PlusAutoMapper().Configurators)
{
configurator(configuration);
}
};
}
if (Configuration.PlusAutoMapper().UseStaticMapper)
{
// 防止重复映射
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment