Method to verify if a record exists


Having a bool POM.DoesRecordExists<T>(formatName) method would be useful, along with an overload to this method that takes the formatNumber


bvsms wrote Jun 19, 2012 at 8:21 AM


Are you trying to check whether a given format has any records in it, or do you want to check whether a specific record exists inside a format? or both?

mtravan wrote Jun 25, 2012 at 2:31 AM

I was originally only looking for the existence of a record. I typically use the pom.GetAllRecords<T> or pom.GetAllOperations then use a list<t>.any. I guess the need to check whether the format was empty or not would depend if the pom.GetAllRecords<T> and pom.GetAllOperations() throw an exception if the format is empty.