C# Class CodeSharp.EventSourcing.Snapshot

聚合根的快照类定义
Show file Open project: tangxuehua/eventsourcing Class Usage Examples

Public Methods

Method Description
IsValid ( ) : bool

返回快照的基本数据有效性

Snapshot ( ) : System
Snapshot ( Type aggregateRootType, string aggregateRootId, long version, object data, System.DateTime createdTime ) : System

Method Details

IsValid() public method

返回快照的基本数据有效性
public IsValid ( ) : bool
return bool

Snapshot() public method

public Snapshot ( ) : System
return System

Snapshot() public method

public Snapshot ( Type aggregateRootType, string aggregateRootId, long version, object data, System.DateTime createdTime ) : System
aggregateRootType System.Type
aggregateRootId string
version long
data object
createdTime System.DateTime
return System