如果要表示一對多的物件結構,我們可以採用如下的方式(表明了乙個入庫單的結構,這個入庫單包含了入庫單頭和相關明細):
public
class form: persistencecapable
public form(bool autoinit)
public form(entitydata entity)
#endregion
#region
屬性
public
string formid
set
}
public datetime formtime
set
}
public formdetail formdetail
return formdetail;
}
}
#endregion
#region
persistencecapable 成員
public
int objectcount
}
public entitydata entitydata
set
}
public
bool next()
public
void first()
public
void addnew()
#endregion
}
public
class formdetail : persistencecapable
public formdetail(bool autoinit)
public formdetail(entitydata entity)
#endregion
#region
屬性
public
string formdetailid
set
}
public
string formid
set
}
public
string productid
set
}
public
decimal incount
set
}
#endregion
#region
persistencecapable 成員
public
int objectcount
}
public entitydata entitydata
set
}
public
bool next()
public
void first()
public
void addnew()
#endregion
}
Websharp使用說明(1)
websharp 使用說明前言 n層的應用軟體系統,由於其眾多的優點,已經成為典型的軟體系統架構,也已經為廣大開發人員所熟知。在乙個典型的三層應用軟體系統中,應用系統通常被劃分成以下三個層次 資料庫層 應用服務層和使用者介面層。如下圖所示 其中,應用服務層集中了系統的業務邏輯的處理,因此,可以說是應...
Websharp使用說明(5)
物件的查詢 websharp 提供了對物件查詢的功能,這個功能通過 query 介面提供。query 介面的定義可以見 附1 websharp主要介面定義 query 可以通過下面的辦法來使用 query 介面 persistencemanager pm persistencemanage ctor...
iperf3使用說明
如果你已經在使用iperf3了,高階的詳細資訊請檢視 作者的翻譯和針對每個引數的使用例子教程 iperf3命令引數詳解 iperf3 是乙個非常強大的用於測試ip網路的最大頻寬的工具。它支援設定調整各種引數,如時間,緩衝,協議等等,以支援得到被測的ip網路的在不同配置下的網路效能,得到 各種效能指標...