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));
 }
Exemple #2
0
        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));
        }