Beispiel #1
0
 public static string GetConstraintName(UniqueReferenceInfo info)
 {
     return(SqlUtility.Identifier(Sql.Format("UniqueReferenceDatabaseDefinition_ConstraintName",
                                             info.Extension.Name,
                                             info.Base.Name)));
 }
Beispiel #2
0
 public static bool IsSupported(UniqueReferenceInfo info)
 {
     return(info.Extension is EntityInfo &&
            ForeignKeyUtility.GetSchemaTableForForeignKey(info.Base) != null);
 }
 public static bool ShouldCreateConstraint(UniqueReferenceInfo info)
 {
     return(info.Extension is EntityInfo &&
            ForeignKeyUtility.GetSchemaTableForForeignKey(info.Base) != null);
 }