protected internal virtual ForeignKey Clone(CloneContext cloneContext) { return (new ForeignKey( Name, Columns.Select(column => column.Clone(cloneContext)).ToArray(), ReferencedColumns.Select(column => column.Clone(cloneContext)).ToArray(), CascadeDelete)); }
public virtual ForeignKey Clone([NotNull] CloneContext cloneContext) { Check.NotNull(cloneContext, "cloneContext"); return (new ForeignKey( Name, Columns.Select(column => column.Clone(cloneContext)).ToArray(), ReferencedColumns.Select(column => column.Clone(cloneContext)).ToArray(), CascadeDelete)); }