/// <summary> /// </summary> /// <param name="suffix"></param> /// <returns></returns> public string GetConstraintName(string suffix) { if (suffix == "FK") { var refclassName = ReferenceTable.Replace(".", "_"); if (null != ReferenceClass) { refclassName = ReferenceClass.Name; } return ((Table.FullSqlName.Replace(".", "_").Replace("\"", "") + "_" + Name + "_" + refclassName + "_" + ReferenceField + "_" + suffix).ToLowerInvariant()); } return((Table.FullSqlName.Replace(".", "_").Replace("\"", "") + "_" + Name + "_" + suffix).ToLowerInvariant()); }