コード例 #1
0
        public static void AddUniqueConstr(this ITransformationProvider migration, string table, params string[] columns)
        {
            string name = migration.UniqueConstraintName(table, columns);

            migration.AddUniqueConstraint(name, table, columns);
        }
コード例 #2
0
 public override void Execute(ITransformationProvider provider)
 {
     provider.AddUniqueConstraint(Name, Table.Name,
         Columns.Select(x => x.Name).ToArray());
 }