Using enums in WCF Data Services

前端 未结 6 2003
独厮守ぢ
独厮守ぢ 2020-12-14 09:43

I\'m trying to manually build a WCF Data Service using a POCO data model and I cannot figure out how to properly expose enum values. Assuming a simple model lik

6条回答
  •  Happy的楠姐
    2020-12-14 10:01

    Enums are currently not supported in WCF Data Services (the OData protocol doesn't support them either). The typical workaround is to use string and constant values, or integer and constant values.

提交回复
热议问题