Not available for Offline object
(Automatically adding template at the end of the page.)
(Adding message template to the top of the page)
Line 1: Line 1:
{{message|Write the content here to display this box}}
If you get this error, working in CodeDress or the Framework in general, you have created an object without specifying which eco-space it belongs to.
If you get this error, working in CodeDress or the Framework in general, you have created an object without specifying which eco-space it belongs to.



Revision as of 22:21, 16 June 2024

Write the content here to display this box

If you get this error, working in CodeDress or the Framework in general, you have created an object without specifying which eco-space it belongs to.

Change your object constructor to look like this:

Class1 newObject = new Class1(this.AsIObject().ServiceProvider)

this.AsIObject().ServiceProvider is the crucial part.

The IEcoServiceProvider is available from all IObjects. All objects of model classes have an AsIObject() method. You can find the service provider there: this.AsIObject().ServiceProvider.

The this.ServiceProvider() shortcut is an extension method from the namespace Eco.ObjectRepresentation.

This page was edited 95 days ago on 06/17/2024. What links here