private static IEnumerable<NavigationProperty> GetNavigationPropertiesForContainer(OdcmClass odcmClass) { return odcmClass.NavigationProperties().Select(Property.AsContainerNavigationProperty); }
private static IEnumerable<Property> GetObsoletedNavigationProperties(OdcmClass odcmClass) { return odcmClass.NavigationProperties().Where(p => NamesService.GetPropertyName(p) != NamesService.GetModelPropertyName(p)) .Select(Property.AsObsoletedNavigationProperty); }
private static IEnumerable<Property> GetIConcreteNavigationPropertiesForConcrete(OdcmClass odcmClass) { return odcmClass.NavigationProperties().Select(Property.AsConcreteNavigationProperty); }
private static IEnumerable<FetcherNavigationProperty> GetIFetcherNavigationPropertiesForFetcher(OdcmClass odcmClass) { return odcmClass.NavigationProperties().Select(Property.AsIFetcherNavigationPropertyForFetcher); }
private static IEnumerable<Property> GetImplicitPropertiesForConcrete(OdcmClass odcmClass) { return odcmClass.NavigationProperties().Select(Property.AsNavigationAccessorProperty); }
private static IEnumerable<Field> GetNavigationFields(OdcmClass odcmClass) { return odcmClass.NavigationProperties(false).Select(Field.ForNavigationProperty); }
private static IEnumerable<Field> GetFetcherFields(OdcmClass odcmClass) { return odcmClass.NavigationProperties(false).Select(Field.ForNavigationFetcherProperty) .Concat(odcmClass.NavigationProperties(true).Select(Field.ForFetcherNavigationCollectionProperty)); }
private static IEnumerable<Field> GetCollectionFields(OdcmClass odcmClass) { return odcmClass.NavigationProperties(true).Select(Field.ForConcreteNavigationCollectionProperty); }
private static IEnumerable<Method> ForContainerAddToCollection(OdcmClass odcmClass) { return odcmClass.NavigationProperties() .Where(p => p.IsCollection) .Select(p => new ContainerAddToCollectionMethod(p)); }