[nhusers] Mapping one-to-one relationship in a single table.

2009-08-10 Thread Jeffrey Zhao
I met a problem when try to map an one-to-one relationship in a single table. For example there're two entities (Product and ProductDetail): public class Product { public virtual int ProductID { get; set; } public virtual string Name { get; set; } public virtual float Price { get; set;

[nhusers] Mapping one-to-one relationship in a single table

2009-08-09 Thread YJingLee
I met a problem when try to map an one-to-one relationship in a single table. For example there're two entities (Product and ProductDetail): public class Product { public virtual int ProductID { get; set; } public virtual string Name { get; set; } public virtual float Price { get; set