Skip to content

C# output functions require object classes to use properties #243

@Charles-Gagnon

Description

@Charles-Gagnon

Currently all our code assumes that the C# item class (T) defines the column names as properties on the object - e.g. https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAsyncCollector.cs#L272

This breaks if the object is defined with the properties as fields instead of properties, e.g.

    public class Product
    {
        public string Name;
        public int Cost;
    }

We should be able to support both ideally

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions