C# Class Breeze.Entities.SaveWorkState

Contains the entities and other data needed to conduct the save process. Each instance should only be used for a single save request.
Show file Open project: Breeze/breeze.server.net Class Usage Examples

Public Properties

Property Type Description
EntityErrors List
KeyMappings List

Protected Properties

Property Type Description
EntityInfoGroups List

Public Methods

Method Description
SaveWorkState ( List entityInfoGroups ) : Newtonsoft.Json

Populate the EntityInfoGroups, SaveMap, and EntitiesWithAutoGeneratedKeys

ToSaveResponse ( ) : BreezeSaveResponse

Convert the SaveWorkState to a response for sending to the client.

Method Details

SaveWorkState() public method

Populate the EntityInfoGroups, SaveMap, and EntitiesWithAutoGeneratedKeys
public SaveWorkState ( List entityInfoGroups ) : Newtonsoft.Json
entityInfoGroups List
return Newtonsoft.Json

ToSaveResponse() public method

Convert the SaveWorkState to a response for sending to the client.
public ToSaveResponse ( ) : BreezeSaveResponse
return BreezeSaveResponse

Property Details

EntityErrors public property

Any business-rule errors generated during the save
public List EntityErrors
return List

EntityInfoGroups protected property

original entities materialized from the client
protected List EntityInfoGroups
return List

KeyMappings public property

mappings of temporary keys to server-generated keys. Updated during the save process
public List KeyMappings
return List