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

Related entities as dto object #8

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

Gwenou
Copy link
Collaborator

@Gwenou Gwenou commented Mar 22, 2017

Hi,

I have add a new option do use related enteties property by using other DTO (instead of create properties with a composed name).
The goal is to have the posibilities to use common function (external or in custom code) based on the related DTO.
It works for collection too. The fields replicated are only those selected in tree.
For the moment it replicate only to one level but the code is foreseen to support more. (todo in my next free time)

Additionnaly if this first option is use I have add a second one to create Id or list of Id to directly recreate the relation for an MCV.Net controler (in binding)

Old functionnalities are preserve if those options aren't check.

Copy link
Owner

@yohney yohney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice feature, it will be nice to have it within!

However, there are a lot of changes here. I'll need to pull this code and go through it in more detail through VS, then I'll give you more feedback (there is just one comment regarding naming for now).

private bool _generateMapper;
public class GeneratorProperties
{
public bool generateMapper;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to see those properties as auto properties, with capital letter - public bool GenerateMapper {get;set;}

@Gwenou
Copy link
Collaborator Author

Gwenou commented Mar 28, 2017

Hi Yohney,

I take in account your remarks, I have make changes to support severals levels of related properties.

Regards,

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 this pull request may close these issues.

3 participants