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

Add ability to include non generic usage #25

Closed
radenkozec opened this issue Jun 20, 2018 · 3 comments
Closed

Add ability to include non generic usage #25

radenkozec opened this issue Jun 20, 2018 · 3 comments

Comments

@radenkozec
Copy link

For me is the problem to provide generic type like this:
var filter = new Filter<Person>();
What I need is:

var type = Type.GetType("Bla." + mappedEntityTableName + "RecievedLog");
var filter = new Filter(type);

Can you provide this version?

@dbelmont
Copy link
Owner

Hi @radenkozec,
Sorry for the late reply. I'll have a look at this.
I'll let you know when it's available.
Cheers.

@dbelmont
Copy link
Owner

Hi @radenkozec,

I created a new class called FilterFactory to enable the creation of filters without using generics. Something like this:

var filter = FilterFactory.Create(typeof(Person));

I added this to a pre-release package at NuGet.org. Would you mind checking that out and letting me know what you think about it?

Many thanks,
David

@radenkozec
Copy link
Author

@dbelmont Thanks for your effort. I managed to solve this in some other way. To be honest I don't remember how. Probably not using your library. Hopefully someone will find this feature useful.

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

No branches or pull requests

2 participants