What about this converter: public class CurrencyObjectTypeConverter : ITypeConverter<double?, CurrencyObject[]?> { public CurrencyObject[]? Convert(double? source, CurrencyObject[]? destination, ResolutionContext context) { if (!source.HasValue) return null; var arr = new CurrencyObject[1] { new CurrencyObject { CurrencyValue = source.Value, Currency = "USD" } };
return arr;
}
}
Then it's hard code a lot of property names in above code, what about there 100 properties that should map? and this extension method is used by many classes' mapping.
thanks.
thank you very much!
BsonDefaults does not contain a defintiion for GuidRepresentationMode
thanks, finally we make it works
We are using LeptonX, not LeptonX Lite. When we upgrade from 8 to 9, we found this: //ABP 9 Upgrade, this replacement doesn't work, use OVERRIDE_LEPTON_X_USER_MENU_PROVIDERS instead /** Right sidebar > user / / this.replaceableComponents.add({ component: AppToolbarContainerComponent, key: eThemeLeptonXComponents.Toolbar, }); */ not sure with ABP 10, replace Toolbar would work or not. Will have a try
if the code doesn't roll back, would it creates zombie transaction?
What about code style like below, when there is exception, could unit of work roll back or terminate gracefully? [UnitOfWork] public virtual async Task<SaveResult> UpdateDocumentsAsync(Guid id, Guid[] checklistDocumentIds) { try { some db operations
} catch (Exception ex) { _logger.LogException(ex, LogLevel.Error); } }