public IEnumerator <T> GetEnumerator() { foreach (T record in DataMapper.Select(SessionFactory.GetCurrentSession(typeof(T)), this)) { yield return(record); } }