Skip to content

Prevent setting non-nullable reference properties to NULL #15

Open
@dotnet-bot

Description

@dotnet-bot

Issue by piotrpMSFT
Tuesday Jan 20, 2015 at 19:16 GMT
Originally opened as https://github.com/Microsoft/vipr-old/issues/50


OData supports properties of structrural reference types [e.g. string, Complex Types]. These reference type properties can be specified to be nullable or non-nullable. When non-nullable, the generated proxy cannot express that a user is unable to set the value to null.

When a user tries setting such a property's value to null we could throw an exception from the property Setter. It is unclear if this is necessary or beneficial since the generated proxy would not provide design-time support for preventing invalid code, and a runtime exception would be propagated from the service when a request is made.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions