Particular / NServiceBus.Azure

Transports and storage for Windows Azure
https://docs.particular.net/nservicebus/azure/
Other
10 stars 15 forks source link

Azure Saga Persister - DateTimeOffset exception #246

Closed jhashemi closed 9 years ago

jhashemi commented 9 years ago
                else if (propertyInfo.PropertyType == typeof(DateTimeOffset))
                {
                    var dateTimeOffset = entity[propertyInfo.Name].DateTimeOffsetValue;
                    propertyInfo.SetValue(toCreate, dateTimeOffset.HasValue ? dateTimeOffset.Value : default(DateTimeOffset), null);
                }

needs to be added. getting the "not supported by azure table storage" error.

SeanFeldman commented 9 years ago

Hi @jhashemi,

Azure table storage services has a limit on supported types outlined in MSDN documentation. DateTimeOffset is unfortunately not supported. You could store it as a string and convert back.