Esempio n. 1
0
        protected internal virtual EventAccount With(Event @event, NewEventAccount eventAccount)
        {
            Event       = @event;
            Account     = eventAccount.Account;
            TargetCount = eventAccount.TargetCount;

            repository.Insert(this);

            return(this);
        }
Esempio n. 2
0
 protected internal virtual void AddEventAccount(NewEventAccount eventAccount)
 {
     context.New <EventAccount>().With(this, eventAccount);
 }