protected internal virtual EventAccount With(Event @event, NewEventAccount eventAccount) { Event = @event; Account = eventAccount.Account; TargetCount = eventAccount.TargetCount; repository.Insert(this); return(this); }
protected internal virtual void AddEventAccount(NewEventAccount eventAccount) { context.New <EventAccount>().With(this, eventAccount); }