问题
I am trying to move to Azure's Redis Cache, but I am getting
Type 'Microsoft.WindowsAzure.Storage.Table.TableEntity' in Assembly 'Microsoft.WindowsAzure.Storage, Version=4.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.
when trying to serialize TableEntity or a class that inherits TableEntity. This SO Post indicates the issue was fixed after 4.0.0 - any ideas?
回答1:
As per Breaking Changes description, this is intentionally removed and didn't come back:
- Tables: Removed Serialized attribute and ISerializable implementation from TableEntity. Implement ITabeEntity for your custom entities if you need either.
来源:https://stackoverflow.com/questions/27977466/microsoft-windowsazure-storage-table-tableentity-is-not-marked-as-serializable-u