Azure Table Storage, WCF Service and Enum

后端 未结 6 968
故里飘歌
故里飘歌 2021-02-19 09:00

Here\'s my problem. A class which defines an order has a property called PaymentStatus, which is an enum defined like so:

    public en         


        
6条回答
  •  北海茫月
    2021-02-19 09:28

    Enum is not supported. Even though it is defined like an int, it is really not a integral type supported by Table Storage. Here is the list of types supported. An enum is just a string expression of an integral number with an object-oriented flavor.

    You can store int in table storage and then covert it using Enum.Parse.

提交回复
热议问题