ReadOnlyBase / DataPortal_Create

ReadOnlyBase / DataPortal_Create

Old forum URL:

Ziad posted on Friday, April 15, 2011


I have the following 3 classes:

Company : ReadOnlyBase<Company>

Activity : BusinessBase<Activity>

Activities : BusinessListBase<Activity>

In Activity, I declare a Company Property.

How can I set the Company Property in Activities, shall I define a special Factory Method in Company? How can I do it?



RockfordLhotka replied on Friday, April 15, 2011

There is no "create" operation for a read-only object. Only the "fetch" operation has meaning, so you need to use DataPortal.Fetch and DataPortal_Fetch.

Copyright (c) Marimer LLC