public GetParentRow ( |
||
relation | ||
version | DataRowVersion | |
return |
public DataRow GetParentRow(DataRelation relation, DataRowVersion version)
{
if (relation == null)
{
return null;
}
if (relation.DataSet != _table.DataSet)
{
throw ExceptionBuilder.RelationForeignRow();
}
if (relation.ChildKey.Table != _table)
{
throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
}
return DataRelation.GetParentRow(relation.ParentKey, relation.ChildKey, this, version);
}
DataRow::GetParentRow ( |
|
DataRow::GetParentRow ( string relationName ) : |
|
DataRow::GetParentRow ( string relationName, DataRowVersion version ) : |
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 { } }