internal EntitySetConfiguration(ODataModelBuilder modelBuilder, EntitySetConfiguration configuration) : base(modelBuilder, configuration) { }
internal EntitySetConfiguration(ODataModelBuilder modelBuilder, string name) : base(modelBuilder, new EntitySetConfiguration(modelBuilder, typeof(TEntityType), name)) { }
internal SingletonConfiguration(ODataModelBuilder modelBuilder, SingletonConfiguration configuration) : base(modelBuilder, configuration) { }
private static IDictionary <string, EdmNavigationSource> GetNavigationSourceMap(this EdmModel model, ODataModelBuilder builder, Dictionary <Type, IEdmType> edmTypeMap, IEnumerable <NavigationSourceAndAnnotations> navigationSourceAndAnnotations) { // index the navigation source by name Dictionary <string, EdmNavigationSource> edmNavigationSourceMap = navigationSourceAndAnnotations.ToDictionary(e => e.NavigationSource.Name, e => e.NavigationSource); // apply the annotations foreach (NavigationSourceAndAnnotations navigationSourceAndAnnotation in navigationSourceAndAnnotations) { EdmNavigationSource navigationSource = navigationSourceAndAnnotation.NavigationSource; model.SetAnnotationValue <NavigationSourceUrlAnnotation>(navigationSource, navigationSourceAndAnnotation.Url); model.SetNavigationSourceLinkBuilder(navigationSource, navigationSourceAndAnnotation.LinkBuilder); AddNavigationBindings(navigationSourceAndAnnotation.Configuration, navigationSource, navigationSourceAndAnnotation.LinkBuilder, builder, edmTypeMap, edmNavigationSourceMap); } return(edmNavigationSourceMap); }
internal ComplexTypeConfiguration(ODataModelBuilder modelBuilder) : this(modelBuilder, new ComplexTypeConfiguration(modelBuilder, typeof(TComplexType))) { }
/// <summary> /// Initializes a new instance of the <see cref="EntityTypeConfiguration"/> class. /// </summary> /// <param name="modelBuilder">The <see cref="ODataModelBuilder"/> being used.</param> /// <param name="clrType">The backing CLR type for this entity type.</param> public EntityTypeConfiguration(ODataModelBuilder modelBuilder, Type clrType) : base(modelBuilder, clrType) { }