/// <inheritdoc /> public IExplicitValueConverterBuilder <TEntity> MappedTo(Iri term, Iri graph = null) { if (term == null) { throw new ArgumentNullException(nameof(term)); } var propertyInfo = new ExplicitlyMappedPropertyInfo(_propertyInfo, term, graph); _mappingsBuilder.Properties[propertyInfo] = new Tuple <Iri, Iri, Type>(term, graph, null); return(new DefaultExplicitPropertyValueConverterBuilder <TEntity>(_mappingsBuilder, propertyInfo)); }
/// <inheritdoc /> public IExplicitCollectionStorageModelBuilder <TEntity> MappedTo(Iri term, Iri graph = null) { if (term == null) { throw new ArgumentNullException(nameof(term)); } var propertyInfo = new ExplicitlyMappedPropertyInfo(_propertyInfo, term, graph); _mappingsBuilder.Collections[propertyInfo] = new Tuple <Iri, Iri, CollectionStorageModel, Type>(term, graph, CollectionStorageModel.Unspecified, null); return(new DefaultExplicitCollectionStorageModelBuilder <TEntity>(_mappingsBuilder, propertyInfo)); }
internal FluentPropertyMappingProvider(Type entityType, PropertyInfo property, Iri iri, Type valueConverterType = null, Iri graph = null) : base(entityType, iri, graph) { _propertyInfo = (Property = property) as ExplicitlyMappedPropertyInfo; ValueConverterType = valueConverterType; }