protected virtual IAttributeUseStateCreated MapCreate(ICreateAttributeUse c, IAttributeSetCommand outerCommand, long version, IAttributeSetState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new AttributeUseStateEventId(c.AttributeSetId, c.AttributeId, version); IAttributeUseStateCreated e = NewAttributeUseStateCreated(stateEventId); var s = outerState.AttributeUses.Get(c.AttributeId, true); e.SequenceNumber = c.SequenceNumber; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = DateTime.Now; return(e); }// END Map(ICreate... ////////////////////////////
void ICreateAttributeUseCommands.Remove(ICreateAttributeUse c) { _innerCommands.Remove((CreateAttributeUseDto)c); }
public void Remove(ICreateAttributeUse c) { _innerCommands.Remove(c); }
void ICreateAttributeUseCommands.Add(ICreateAttributeUse c) { _innerCommands.Add((CreateAttributeUseDto)c); }
public void Add(ICreateAttributeUse c) { _innerCommands.Add(c); }