I have the following classes that I need NHibernate to play nicely with. How do I do it?
public class Customer
{
public int ID { get; set; }
public string Name {get;set;}
}
public class Product
{
public int ID { get; set; }
public string Name {get;set;}
}
public class CustomerPricing
{
public int ID { get; set; }
public decimal Price {get;set;}
public Customer Customer { get; set; }
public Product Product {get;set;}
public datetime ExpiresOn { get; set; }
public string ApprovedBy {get;set;}
}
I am using fluent mappings and the HasManyToMany doesn't work for this (that I can tell). I'm currently working around it by using a HasMany then doing some LINQ queries in the model (yuck).
Thanks in advance.
Kyle