Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IEnumerable`1 for ContentType PropertyType #9

Open
FrancisGroleau opened this issue Feb 27, 2025 · 0 comments
Open

IEnumerable`1 for ContentType PropertyType #9

FrancisGroleau opened this issue Feb 27, 2025 · 0 comments

Comments

@FrancisGroleau
Copy link

FrancisGroleau commented Feb 27, 2025

If we have a ContentType like so:

public class MyContentType
{
    public IEnumable<MyPropertyType> MyPropertyTypeList {get; set;}
}

and we use the graph source client:

    _graphSourceClient.ConfigureContentType<MyContentType>()
                .Field(f => f.MyPropertyTypeList , IndexingType.PropertyType)

when the client is generating the type definition through
SourceConfigurationModel method AddContentTypeField

It will add to the fieldConfiguration for the MappedType IEnumerable`1
Instead of [MyPropertyType]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant