IdeaBlade DevForce 2010 Help Reference
EntityServerPocoSaveAdapter Class
Members  See Also  Send Feedback
IdeaBlade.EntityModel.Server Assembly > IdeaBlade.EntityModel.Server Namespace : EntityServerPocoSaveAdapter Class



Base class for "adapter" based implementations of POCO save logic. IdeaBlade.EntityModel.EntityManager.SaveChanges

Syntax

Visual Basic (Declaration) 
<InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter)>
Public MustInherit Class EntityServerPocoSaveAdapter 
Visual Basic (Usage)Copy Code
Dim instance As EntityServerPocoSaveAdapter
C# 
[InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter)]
public abstract class EntityServerPocoSaveAdapter 
C++/CLI 
[InterfaceExportAttribute(ContractName="", ContractType=IdeaBlade.EntityModel.Server.EntityServerPocoSaveAdapter)]
public ref class EntityServerPocoSaveAdapter abstract 

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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.