public static void RemoveAssociativeRecord <T>(T association) where T : class { if (removeRecordContext == null) { removeRecordContext = new ConfigDatabase(m_removeRecordMtoMConnectionString); } Table <T> tableData = removeRecordContext.GetTable <T>(); var record = tableData.SingleOrDefault(r => r == association); if (record != null) { tableData.DeleteOnSubmit(record); } }