我們有以下的數據庫結構: UserTeam table
Id (PK, int not null)
UserId (FK, int, not null)
TeamId (FK, int, not null)
RoleId (FK, int, not null)
libRole table
Id (PK, int not null)
Description (varchar(255)
空我有2個實體: public class Parent
{
public virtual string Number { get; set; }
public virtual IList<Child> Children { get; set; }
public Parent()
{
Phones = new List<Child>();
我試圖映射兩個表: 第一個有一個id(IDA)和場與其他表的ID(IDB)。 另一個具有基於先前的ID(IDB)和另一個(idB2)複合鍵 的想法是,在第二個表包含在多個的分割的說明行。 我目前的實現如下,但我無法檢索concatenation所需的partialDescription。 我應該如何改變我的地圖工作?有任何想法嗎? :) public class A
{
long id
我有一個表。那是s。 有兩類1. S和2 P 板由S.繼承的類是: public class S
{
public virtual decimal Id { get; set; }
public virtual IList<P> ChildPs { get; set; }
}
public class P : S
{
public virtual GTy
我有這個類(去除其中的冗餘信息後): public class Category : BaseEntity
{
public virtual Category ContainingCategory { get; set; }
public virtual IList<CategoryProperty> Properties { get; set; }
}
public