Example #1
0
 public PublicEntityTypeInitializer(
     IPropertyService propertyService,
     IStructuralPropertyFactory structuralPropertyFactory,
     IMappingLogger logger)
 {
     this.propertyService           = propertyService;
     this.structuralPropertyFactory = structuralPropertyFactory;
     this.logger = logger;
 }
Example #2
0
        private static IStructuralProperty CreateEntityIdProperty(IStructuralPropertyFactory structuralPropertyFactory)
        {
            IStructuralProperty entityIdProperty;

            if (structuralPropertyFactory.TryCreate(FactonModelKeywords.IdPropertyName, e => e.Id, false, out entityIdProperty))
            {
                return(entityIdProperty);
            }
            throw new InvalidOperationException("Could not map entity id property.");
        }
Example #3
0
 public VersionInfoTypeInitializer(
     IQueryBuilderFactory queryBuilderFactory,
     IMetadataService metadataService,
     IStructuralPropertyFactory structuralPropertyFactory,
     IFactonQueryService factonQueryService)
 {
     this.queryBuilderFactory       = queryBuilderFactory;
     this.metadataService           = metadataService;
     this.structuralPropertyFactory = structuralPropertyFactory;
     this.factonQueryService        = factonQueryService;
 }