Not available for Offline object

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

Change your object constructor to look like this;

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

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

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

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

This page was edited 82 days ago on 02/10/2024. What links here