AndroidViewModel vs ViewModel

With the introduction of the Android Architecture Components library, several new classes were introduced, including AndroidViewModel and ViewModel. However, I’m having trouble figuring out the difference between these two classes. The documentation succinctly describes AndroidViewModel as follows: Application context aware ViewModel I appreciate the brevity, but what exactly does this imply? When should we choose … Read more

Ignore mapping one property with Automapper

I’m using Automapper and I have the following scenario: Class OrderModel has a property called ‘ProductName’ that isn’t in the database. So when I try to do the mapping with: Mapper.CreateMap<OrderModel, Orders>(); It generates an exception : “The following 1 properties on Project.ViewModels.OrderModel are not mapped: ‘ProductName’ I’ve read at AutoMapper’s Wiki for Projections the … Read more