📄 getchildproperty.format
字号:
/// <summary>
/// This property exposes the child object {1}.
/// This is a 1:1 relation.
/// </summary>
public {0} {1}
{
get
{
DataRow[] childRows = this.row.GetChildRows( "{3}{4}" );
if (childRows.Length > 0)
{
_{1} = new {0}(base.DataContext, childRows[0] );
}
return _{1};
}
set
{
value.row.SetParentRow(this.row, base.DataSet.Relations["{3}{4}"]);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -