public void InitializeVersionsNavigationProperty(IBindableModelBuilder modelBuilder, IEntityTypeBuilder sourceTypeBuilder, IEntityTypeBuilder versionInfoTypeBuilder) { modelBuilder.WithBinding( sourceTypeBuilder.CreateContainedNavigationProperty(versionInfoTypeBuilder, FactonModelKeywords.VersionInfoNavigationPropertyName) .WithMultiplicity(EdmMultiplicity.One, EdmMultiplicity.Many) .WithSupportedOperations(Operation.Get | Operation.Post), new VersionInfoNavigationPropertyBinding(this.factonQueryService, this.queryBuilderFactory)); }
private static void AddContainerNavigationProperty( IBindableModelBuilder modelBuilder, IEntityTypeBuilder publicEntityType, IEntityTypeBuilder containerEntityType) { modelBuilder.WithBinding( publicEntityType.CreateContainedNavigationProperty(containerEntityType, FactonModelKeywords.ValueRuleContainerNavigationPropertyName) .WithMultiplicity(EdmMultiplicity.One, EdmMultiplicity.One) .WithSupportedOperations(Operation.Get), new VirtualValueRuleContainerNavigationPropertyBinding()); }
private static void RegisterVersionedEntityNavigationProperty( IBindableModelBuilder modelBuilder, IEntityTypeBuilder versionInfoTypeBuilder, IEntityTypeBuilder publicEntityTypeBuilder) { modelBuilder.WithBinding( versionInfoTypeBuilder.CreateContainedNavigationProperty( publicEntityTypeBuilder, FactonModelKeywords.VersionedEntityNavigationPropertyName) .WithMultiplicity(EdmMultiplicity.One, EdmMultiplicity.One) .WithSupportedOperations(Operation.Get), new VersionedEntityNavigationPropertyBinding()); }