/// <summary> /// Creates a deep copy of current instance. /// </summary> /// <param name="setPrefixedAliasesForChildColumns">Specifies whether child columns in cloned relation will have prefixed aliases. /// This parameter overrides the value set in <see cref="IDbTable.ColumnAliasesArePrefixed"/> property.</param> /// <param name="setPrefixedAliasesForParentColumns">Specifies whether parent columns in cloned relation will have prefixed aliases. /// This parameter overrides the value set in <see cref="IDbTable.ColumnAliasesArePrefixed"/> property.</param> public DbRelation Clone(bool setPrefixedAliasesForChildColumns, bool setPrefixedAliasesForParentColumns) { DbRelation clone = new DbRelation(); clone.CopyFrom(this, null, setPrefixedAliasesForChildColumns, null, setPrefixedAliasesForParentColumns); return clone; }
/// <summary> /// Creates a deep copy of current instance. /// </summary> /// <param name="childAlias">New child table alias. If <b>null</b> then current alias is used.</param> /// <param name="setPrefixedAliasesForChildColumns">Specifies whether child columns in cloned relation will have prefixed aliases. /// This parameter overrides the value set in <see cref="IDbTable.ColumnAliasesArePrefixed"/> property.</param> /// <param name="parentAlias">New parent table alias. If <b>null</b> then current alias is used.</param> /// <param name="setPrefixedAliasesForParentColumns">Specifies whether parent columns in cloned relation will have prefixed aliases. /// This parameter overrides the value set in <see cref="IDbTable.ColumnAliasesArePrefixed"/> property.</param> public DbRelation Clone(string childAlias, bool setPrefixedAliasesForChildColumns, string parentAlias, bool setPrefixedAliasesForParentColumns) { DbRelation clone = new DbRelation(); clone.CopyFrom(this, childAlias, setPrefixedAliasesForChildColumns, parentAlias, setPrefixedAliasesForParentColumns); return clone; }
/// <summary> /// Creates a deep copy of current instance. /// </summary> public DbRelation Clone() { DbRelation clone = new DbRelation(); clone.CopyFrom(this); return clone; }