internal static void EnsureEntityCollectionLoaded <TInterface>(IEntityCollection <TInterface> entityCollection) where TInterface : class { Check.Argument.IsNotNull(entityCollection, "entityCollection"); if (entityCollection == null || entityCollection.IsLoaded) { return; } entityCollection.Load(); }