public override void Persisting() { base.Persisting(); AccountHolderLink = PolymorphicNavigator.NewTransientLink <CustomerAccountAccountHolderLink, ICustomerAccountHolder, CustomerAccount>(_AccountHolder, this); string number = AccountNumberCreator.GetAccountNumberForNewAccount(this); Code = number; }
public void Persisting() { TargetObjectLink = PolymorphicNavigator.NewTransientLink <ObjectAuditedEventTargetObjectLink, IDomainInterface, ObjectAuditedEvent>(_TargetObject, this); }
//TODO: Move this method into LifeCycle Methods region, or add code into existing Persisting method public void Persisting() { PayeeLink = PolymorphicNavigator.NewTransientLink <PolymorphicPaymentPayeeLink, IPayee, PolymorphicPayment>(_Payee, this); }
public override void Persisting() { base.Persisting(); ContentLink = PolymorphicNavigator.NewTransientLink <ExternalDocumentContentLink, IExternalDocument, ExternalDocument>(_Content, this); }