Пример #1
0
        protected internal virtual EventAccount With(Event @event, NewEventAccount eventAccount)
        {
            Event       = @event;
            Account     = eventAccount.Account;
            TargetCount = eventAccount.TargetCount;

            repository.Insert(this);

            return(this);
        }
Пример #2
0
 protected internal virtual void AddEventAccount(NewEventAccount eventAccount)
 {
     context.New <EventAccount>().With(this, eventAccount);
 }