Fluent NHibernate question

后端 未结 4 2140
难免孤独
难免孤独 2021-01-05 04:00

Let\'s say you have two tables, \"Users\" and \"UserRoles\". Here\'s how the two tables are structured (table - columns):

Users - UserID (int)

UserRoles - U

4条回答
  •  抹茶落季
    2021-01-05 04:33

    FWIW this has change minorly of present day. The current mapping is

    HasMany(x => x.Roles)
      .Element("Role");
    

提交回复
热议问题