Using self servicing entities and collections with no database

Posts   
 
    
Posts: 8
Joined: 20-Sep-2011
# Posted on: 04-Oct-2013 17:47:13   

Is there a way to use the genereted code from llblgen with out a any present database. Im trying to fill a collection in memory and is not intended to save any data on a local database. I want to send the object to a wcf. Using Add() triger the generated code to look for the database. is there a way to prevent this.

oInboud.InboundMessageOpen = new InboundMessageOpenEntity() ;

                       oInboud.InboundMessageOpen.TimeOpen = opitem.TimeStamp;
                       oInboud.InboundMessageOpen.TimeStamp = opitem.TimeStamp;
                       oInboud.InboundMessage.InboundMessageOpens.Add(oInboud.InboundMessageOpen);
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Oct-2013 07:12:23   

It's possible with Adapter, but SelfServicing is not designed for that, as SelfServicing will trigger lazy-loading every time you access related navigators or constructing an entity. So, if possible, use Adapter.

David Elizondo | LLBLGen Support Team