Fluent NHibernate 3 table relation without primary and foreign keys
问题 Background Info I have the following class that I want to map with NHibernate: public class Player { public virtual int Id { get; set; } public virtual Type Type { get; set; } public virtual string ScreenName { get; set; } public virtual bool Unsubscribed { get; set; } } On the database side, I have the following tables: -- New table Player ( int Id int TypeId (not null) -- foreign-key to Type table string ScreenName (not null) -- can be an EmailAddress, but not necessarily ) Type ( int Id