Why does Fluent NHibernate AutoMappings add an underscore to Id (e.g. Entity_id)?

后端 未结 2 596
醉梦人生
醉梦人生 2021-01-22 15:28

Hi using fluent nibernate automappings

to map this

    public virtual int Id { get; set; }
    /*...snip..*/
    public virtual MapMarkerIcon MapMarkerI         


        
2条回答
  •  攒了一身酷
    2021-01-22 16:15

    You need an Id convention.

    See http://wiki.fluentnhibernate.org/Available_conventions and http://wiki.fluentnhibernate.org/Convention_shortcut

提交回复
热议问题