Merge pull request #1712 from abpframework/maliming/patch-1

Use AddMaps instead of AddProfile in startup templates.
pull/1715/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 93bc3fd9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,11 +23,7 @@ namespace MyCompanyName.MyProjectName
{
Configure<AbpAutoMapperOptions>(options =>
{
/* Use `true` for the `validate` parameter if you want to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more info
* about the configuration validation. */
options.AddProfile<MyProjectNameApplicationAutoMapperProfile>();
options.AddMaps<MyProjectNameApplicationModule>();
});
}
}

@ -130,12 +130,7 @@ namespace MyCompanyName.MyProjectName.Web
{
Configure<AbpAutoMapperOptions>(options =>
{
/* use `true` for the `validate` parameter if you want to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more
* about configuration validation.
*/
options.AddProfile<MyProjectNameWebAutoMapperProfile>();
options.AddMaps<MyProjectNameWebModule>();
});
}

@ -98,12 +98,8 @@ namespace MyCompanyName.MyProjectName.Web
{
Configure<AbpAutoMapperOptions>(options =>
{
/* use `true` for the `validate` parameter if you want to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more
* about configuration validation.
*/
options.AddProfile<MyProjectNameWebAutoMapperProfile>();
options.AddMaps<MyProjectNameWebModule>();
});
}

@ -135,12 +135,7 @@ namespace MyCompanyName.MyProjectName
{
Configure<AbpAutoMapperOptions>(options =>
{
/* use `true` for the `validate` parameter if you want to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more
* about configuration validation.
*/
options.AddProfile<MyProjectNameWebAutoMapperProfile>();
options.AddMaps<MyProjectNameWebHostModule>();
});
}

@ -14,11 +14,7 @@ namespace MyCompanyName.MyProjectName
{
Configure<AbpAutoMapperOptions>(options =>
{
/* Using `true` for the `validate` parameter to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more info
* about the configuration validation. */
options.AddProfile<MyProjectNameApplicationAutoMapperProfile>(validate: true);
options.AddMaps<MyProjectNameApplicationModule>(validate: true);
});
}
}

@ -39,11 +39,7 @@ namespace MyCompanyName.MyProjectName.Web
Configure<AbpAutoMapperOptions>(options =>
{
/* Using `true` for the `validate` parameter to
* validate the profile on application startup.
* See http://docs.automapper.org/en/stable/Configuration-validation.html for more info
* about the configuration validation. */
options.AddProfile<MyProjectNameWebAutoMapperProfile>(validate: true);
options.AddMaps<MyProjectNameWebModule>(validate: true);
});
Configure<RazorPagesOptions>(options =>

Loading…
Cancel
Save