public static bool IsInstReferenced(string table, string col, string dataCondition) { ForeignKey[] fKeysToTable = MetaRequests.GetFKeyToTable(table); bool isFKeyRef = false; foreach (ForeignKey fKey in fKeysToTable) { isFKeyRef = isFKeyRef || IsFKeyRefUsed(table, col, fKey, dataCondition); } return(isFKeyRef); }
public static int GetAppLength(string[] data, List <BookingCreator> booking) { if (AppTypes is null) { AppTypes = MetaRequests.GetAllFromTable("Appointment Type"); } // appLength is in minutes int appLength = (int)(Convert.ToDouble(AppTypes[Convert.ToInt32(data[2])][1]) * 60); if (data[6] == "True") { appLength += 15; } if (IsAppointmentInitial(data, booking)) { appLength += 15; } return(appLength); }