Mapping child objects in fluent nhibernate to a read-only view
- by grenade
Given that I am implementing a read-only UI, how do I create a ClassMap for Shop:
public class Shop {
public int Id { get; set; }
public City City { get; set; }
}
public class City {
public string Name { get; set; }
public string CountryCode { get; set; }
}
The DB interface for Shops is a View containing 3 columns (ShopId,…