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

Question: Are non-parameterless constructors and initializers supported by this latest .net core version from EF? #5124

Closed
StefH opened this issue Apr 20, 2016 · 3 comments

Comments

@StefH
Copy link

StefH commented Apr 20, 2016

I did observe in some test-code that I wrote, that it seems that this latest EF can handle this ? Or is this still not supported ?

@rowanmiller
Copy link
Contributor

@StefH we're not quite sure what you are asking, could you elaborate? If you want parameterless constructors on entity types, then that is supported (it's actually all that is supported right now)

@StefH StefH changed the title Question: Are parameterless constructors and initializers supported by this latest .net core version from EF? Question: Are non-parameterless constructors and initializers supported by this latest .net core version from EF? Apr 23, 2016
@StefH
Copy link
Author

StefH commented Apr 23, 2016

Sorry for the confusion.
Actually I mistyped the title, I wanted to ask if non parameterless constructors are supported. But I guess the answer is no.

Second question : is there public code inside corefx/coreclr which lets you easily create an anonymous type based on properties names and property types ?

Currently I'm using my own code (https://github.com/StefH/System.Linq.Dynamic.Core/blob/master/src/System.Linq.Dynamic.Core/DynamicClassFactory.cs) to create an anonymous type.

@rowanmiller
Copy link
Contributor

rowanmiller commented Apr 25, 2016

@StefH - regarding the original question... #240 is tracking the ability to control how types are constructed and populated (including constructor arguments). It will be a post 1.0.0 feature.

The question about dynamic types is probably best asked at http://github.com/dotnet/corefx/

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

3 participants