コード例 #1
0
 internal EntitySetConfiguration(ODataModelBuilder modelBuilder, EntitySetConfiguration configuration)
     : base(modelBuilder, configuration)
 {
 }
コード例 #2
0
 internal EntitySetConfiguration(ODataModelBuilder modelBuilder, string name)
     : base(modelBuilder, new EntitySetConfiguration(modelBuilder, typeof(TEntityType), name))
 {
 }
コード例 #3
0
 internal SingletonConfiguration(ODataModelBuilder modelBuilder, SingletonConfiguration configuration)
     : base(modelBuilder, configuration)
 {
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 internal ComplexTypeConfiguration(ODataModelBuilder modelBuilder)
     : this(modelBuilder, new ComplexTypeConfiguration(modelBuilder, typeof(TComplexType)))
 {
 }
コード例 #6
0
 /// <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)
 {
 }