How do I specify with fluent nHbiernate mapping for a table that doesn't have an identity column?
I want something like this:
public sealed class CustomerNewMap : ClassMap<CustomerNew>, IMap
{
public CustomerNewMap()
{
WithTable("customers_NEW");
Not.LazyLoad();
Not.Id(); // this is invalid...
Map(x => x.Username);
Map(x => x.Company);
}
}
Cheers in advance
Ollie