Skip to content
Discussion options

You must be logged in to vote

@GreggThelen does your child class's data portal operation inject a DAL as well? I would expect that it would.

The parent type should inject a DAL type to get its own data, and then would inject a child data portal to interact with child types. The child types obviously need data as well.

The child types can get their data from the parent (if the parent uses the DAL to get the entire entity graph), or the child types might need access to the DAL (via injection) to interact with the DAL as necessary.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by GreggThelen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants