示例#1
0
 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));
 }
示例#2
0
 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());
 }
示例#3
0
 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());
 }