Esempio n. 1
0
        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... ////////////////////////////
Esempio n. 2
0
 void ICreateAttributeUseCommands.Remove(ICreateAttributeUse c)
 {
     _innerCommands.Remove((CreateAttributeUseDto)c);
 }
Esempio n. 3
0
 public void Remove(ICreateAttributeUse c)
 {
     _innerCommands.Remove(c);
 }
Esempio n. 4
0
 void ICreateAttributeUseCommands.Add(ICreateAttributeUse c)
 {
     _innerCommands.Add((CreateAttributeUseDto)c);
 }
Esempio n. 5
0
 public void Add(ICreateAttributeUse c)
 {
     _innerCommands.Add(c);
 }