コード例 #1
0
ファイル: DocumentTypeAggregate.cs プロジェクト: uwitec/wms-8
        protected virtual IDocumentTypeStateCreated Map(ICreateDocumentType c)
        {
            var stateEventId            = new DocumentTypeEventId(c.DocumentTypeId, c.Version);
            IDocumentTypeStateCreated e = NewDocumentTypeStateCreated(stateEventId);

            e.Description          = c.Description;
            e.ParentDocumentTypeId = c.ParentDocumentTypeId;
            e.Active    = c.Active;
            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var version = c.Version;


            return(e);
        }
コード例 #2
0
 public virtual void When(ICreateDocumentType c)
 {
     Update(c, ar => ar.Create(c));
 }
コード例 #3
0
 void IDocumentTypeApplicationService.When(ICreateDocumentType c)
 {
     this.When((CreateDocumentTypeDto)c);
 }
コード例 #4
0
ファイル: DocumentTypeAggregate.cs プロジェクト: uwitec/wms-8
        public virtual void Create(ICreateDocumentType c)
        {
            IDocumentTypeStateCreated e = Map(c);

            Apply(e);
        }