You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this generated code for a table called products created by the ES 2019 studio.
The table products has a many to one relationship with a table called categories.
I want to be able to access the name of the category from product.
So I am doing product.categories.category_name
But when I step through the code in the generated file:, I never seem to reach the part where it loads the Categories.
The generated code in 2019 looks like this:
Is this a bug? Is there some other way I need to be doing this?
I think the problem is with this line: if(this._Categories == null && CategoryId != null)
This is causing it to never go in to that if block since we have already initialized this._Categories just before that: this._Categories = new Categories();
In 2009 version it used to work fine.
The code in 2009 like this:
Please let me know if anyone have any solution for this. Thank you!
The text was updated successfully, but these errors were encountered:
I have this generated code for a table called products created by the ES 2019 studio.
The table products has a many to one relationship with a table called categories.
I want to be able to access the name of the category from product.
So I am doing product.categories.category_name
But when I step through the code in the generated file:, I never seem to reach the part where it loads the Categories.
The generated code in 2019 looks like this:
Is this a bug? Is there some other way I need to be doing this?
I think the problem is with this line:
if(this._Categories == null && CategoryId != null)
This is causing it to never go in to that if block since we have already initialized this._Categories just before that:
this._Categories = new Categories();
In 2009 version it used to work fine.
The code in 2009 like this:
Please let me know if anyone have any solution for this. Thank you!
The text was updated successfully, but these errors were encountered: