RelAttrTableTRow Class |
Namespace: PDTec.IceNet.Sdk.Utils
The RelAttrTableTRow type exposes the following members.
Name | Description | |
---|---|---|
RelAttrTableTRow(IObject, IRelType) |
Creates an instance of the relationship table attributes wrapper.
| |
RelAttrTableTRow(IObject, String) |
Creates an instance of the relationship table attributes wrapper.
|
Name | Description | |
---|---|---|
AppendRow | ||
DeleteRow |
Deletes a single row from the relationship table.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetRows |
Gets all rows of the relationship table.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InsertRowAt | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReorderRows |
Reorders the table rows by the given row ID sequence.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UpdateRow |
The example shows how to use the RelAttrTableTRow class.
public class RequestItem { public string Id; public string Description; public string ItemName; public string AcceptanceStatus; public string AcceptanceComment; public string ApprovalStatus; public string ApprovalComment; }
var rt = new RelAttrTable<RequestItem>(Repository.GetObject("42"), "PDTec.TDM.RequestItem"); var rows = rt.GetRows(); foreach (var row in rows) { Console.WriteLine(row.Id + "|" + row.ItemName + "|" + row.ApprovalStatus + "|" + row.ApprovalComment); } string rowId = null; Repository.ExecuteTransaction(() => { rows[0].Description = "Blubb"; rows[0].AcceptanceComment = "Blarb"; rowId = rt.AppendRow(rows[0]); }); Console.WriteLine(rowId); Repository.ExecuteTransaction(() => { rt.DeleteRow(rowId); });