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

Feature: add option to only populate simple types #96

Open
ArnaudB88 opened this issue Nov 3, 2022 · 0 comments · May be fixed by #97
Open

Feature: add option to only populate simple types #96

ArnaudB88 opened this issue Nov 3, 2022 · 0 comments · May be fixed by #97

Comments

@ArnaudB88
Copy link

I want to request this feature because in our projects we don't want complex type members to be populated. This is the default from the nBuilder github repo from which we are migrating.
For faking entity framework entities, we want to manually construct the navigation properties, which are complex types.

This option would allow to specify if only simple type members should be populated like:

        var instance = AutoFaker.Generate<Order>(builder =>
        {
          builder
            .WithOnlySimpleTypes(true);
        });

I will create a PR for this.

@ArnaudB88 ArnaudB88 linked a pull request Nov 3, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant