public TItem CreateAndAttachItem() { var item = _repository.CreateAndAttachItem(); _events?.OnCreating(item); _savableItems.Add(item); return(item); }
protected override TItem CreateAttachAndSetItem() { if (!_identifierInfo.AllowsUpsert) { return(null); } TItem item = _repository.CreateAndAttachItem(); _identifierInfo.SetValue(item, Identifier); return(item); }
protected override TItem CreateAttachAndSetItem() { return(_navRepository.CreateAndAttachItem()); }