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