locked
With a custom Provider from scratch but cannot support enums! Is this possible ? RRS feed

  • Question

  • Hello,

    I wrote a custom provider from scratch to support enums but I still see it is not possible.

    Enum is not in built in supported primitive types (I can understand this since everyone defines their own enum) and instead I tried going with defining a custom ResourceType and define it as a complex type

    But then ResourceType complains that "hey no value types supported". To sum up I cannot give it to the constructor of ResourceType, nor I can use it as primitive type since its not in built in primitives.

    I can define it as "int" but then on the client side I get an error:

    Incompatible type kinds were found. The type 'Edm.Int32' was found to be of kind 'Primitive' instead of the expected kind 'Complex'.

    Any workarounds ?

    Wednesday, July 31, 2013 1:04 PM