1
Vote

Method to verify if a record exists

description

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

comments

bvsms wrote Jun 19, 2012 at 8:21 AM

Mel,

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.