DevForce Help Reference
EntityServerPocoSaveAdapter Class
Members 


Base class for "adapter" based implementations of POCO save logic. SaveChanges
Syntax
'Declaration
 
<InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter)>
Public MustInherit Class EntityServerPocoSaveAdapter 
'Usage
 
Dim instance As EntityServerPocoSaveAdapter
[InterfaceExport(ContractName="", ContractType=IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter)]
public abstract class EntityServerPocoSaveAdapter 
Remarks
Create a class which inherits from the EntitySaveAdapter to handle save processing for POCO entities. Override the InsertEntity, UpdateEntity and DeleteEntity methods as needed. Note that each POCO entity to be saved will be passed to the method corresponding to the save action required. Each of these methods should handle entities of any POCO type.

Any entity with an EntityState of Added, Modified or Deleted and which is not backed by an EdmKey will be passed to the EntitySaveAdapter.

Be sure to place your implementation of EntitySaveAdapter in an assembly which will be deployed to your BOS in n-tier implementations.

Your implementation should contain a single parameterless constructor.

Inheritance Hierarchy

System.Object
   IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityServerPocoSaveAdapter Members
IdeaBlade.EntityModel.Server Namespace
PocoSaveMode Enumeration

Send Feedback