Reputation: 976
I have VS2010, 12, 13, 15 on my machine. All versions except 15 (Enterprise) work with Intellisense for Automapper.
Code:
class Program
{
static void Main(string[] args)
{
Mapper.CreateMap<B, C>()
.ForMember(x => x.) // this is where it breaks
}
}
class B
{
public string BB { get; set; }
}
class C
{
public string CC { get; set; }
}
I have reproduced this on two machines now by:
install-package automapper
In previous VS versions, as soon as I hit the x => x.
I get Intellisense with destination members.
Upvotes: 5
Views: 910
Reputation: 46
I faced a similar issue. What I have observed is you need to provide the complete syntax for the intellisense to show up
Copy-paste the sample code below and replace with your source and destinations. Then remove the sample items ".ChildDetails", you will start seeing intellisense!
Mapper.CreateMap<tblBusinessName, BusinessNameBO>()
.ForMember(dest => dest.ChildDetails, m => m.MapFrom(s => s.tblBusinessNameChild));
Upvotes: 3
Reputation: 2795
Try this:
what AutoMapper version you have installed?
Upvotes: 1