public PublicEntityTypeInitializer( IPropertyService propertyService, IStructuralPropertyFactory structuralPropertyFactory, IMappingLogger logger) { this.propertyService = propertyService; this.structuralPropertyFactory = structuralPropertyFactory; this.logger = logger; }
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."); }
public VersionInfoTypeInitializer( IQueryBuilderFactory queryBuilderFactory, IMetadataService metadataService, IStructuralPropertyFactory structuralPropertyFactory, IFactonQueryService factonQueryService) { this.queryBuilderFactory = queryBuilderFactory; this.metadataService = metadataService; this.structuralPropertyFactory = structuralPropertyFactory; this.factonQueryService = factonQueryService; }