Microsoft.WindowsAzure.Storage.Table.TableEntity is not marked as serializable using Storage 4.3.0.0

微笑、不失礼 提交于 2019-12-24 05:22:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!