Many-to-many mapping with extra columns in join table

前端 未结 5 1031
慢半拍i
慢半拍i 2021-01-22 00:51

Here is the domain that I wish to have:

public class Person
{
    public int Id { get; set; }
    public IList AcquiredCertificates {          


        
5条回答
  •  走了就别回头了
    2021-01-22 01:41

    I would rename CertificatesAcquiredByPeople something
    like CertificatesAcquiredEvent (it implies that there is more than one key and a datetime)

    I agree it needs to be a seperate Entity as far as NHibernate is concerned.

提交回复
热议问题