System.Data.DataRow.GetParentRow C# (CSharp) Method

GetParentRow() public method

public GetParentRow ( string relationName, DataRowVersion version ) : DataRow
relationName string
version DataRowVersion
return DataRow
        public DataRow GetParentRow(string relationName, DataRowVersion version) =>
            GetParentRow(_table.ParentRelations[relationName], version);

Same methods

DataRow::GetParentRow ( DataRelation relation ) : DataRow
DataRow::GetParentRow ( DataRelation relation, DataRowVersion version ) : DataRow
DataRow::GetParentRow ( string relationName ) : DataRow

Usage Example

Exemplo n.º 1
0
        public BaseBusinessProxy(DataRow row)
        {
            this.Name = row["Name"].ToString();

            this.Version = "";
            if (row.GetParentRow("Bla_Blh").Table.Columns.Contains("Version"))
            {
                this.Version = row.GetParentRow("Bla_Blh")["Version"].ToString();
            }
            this.DbName = "";
            if (row.Table.Columns.Contains("DbName"))
            {
                this.DbName = row["DbName"].ToString();
            }
            this.TransactionMode = "false";
            if (row.Table.Columns.Contains("TransactionMode"))
            {
                this.TransactionMode = row["TransactionMode"].ToString();
            }
            if (row.Table.Columns.Contains("Provider"))
            {
                this.Provider = row["Provider"].ToString();
            }
            try
            {
                this.BusinessAssemblyName = row.GetParentRow("Bla_Blh")["Name"].ToString();
            }
            catch { }
        }
All Usage Examples Of System.Data.DataRow::GetParentRow