using AutoMapper;
using global::Umbraco.Core;
using global::Umbraco.Core.Models.Mapping;
using global::Umbraco.Core.Models.Membership;
using Our.Umbraco.RedirectsViewer.Models;
/// <summary>
/// The usergroup mapping.
/// </summary>
internal class UsergroupMapping : MapperConfiguration
{
/// <summary>
/// Configures the user group mappings
/// </summary>
/// <param name="config">
/// The config.
/// </param>
/// <param name="applicationContext">
/// The application context.
/// </param>
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
what do u have todo in v8 to add mappings?Current i get error on :
MapperConfiguration
It cannot inherit from it because it cannot find it. Has it moved? Do you namespaces need updating?
automapper configs in v8
So in v7 you could do:
what do u have todo in v8 to add mappings?Current i get error on :
It cannot inherit from it because it cannot find it. Has it moved? Do you namespaces need updating?
Regards
Ismail
so looks like https://our.umbraco.com/forum/extending-umbraco-and-using-the-api/96297-umbraco-8-custom-core-mappers
Hi Ismail,
Umbraco V8 no longer ships with AutoMapper out of the box, if you want to add that you still can but you need to add it yourself
Alternatively you can use our mapper instead if you prefer
https://our.umbraco.com/documentation/Reference/Mapping/?_ga=2.98174495.1403028710.1562569887-381923933.1557318288/
https://umbraco.com/blog/umbraco-81-release/#changes
Warren
is working on a reply...