azure-functions-sql-extension icon indicating copy to clipboard operation
azure-functions-sql-extension copied to clipboard

Allow object definitions to reference other objects

Open sebader opened this issue 3 years ago • 4 comments

Is there an example how to use the input bindings to retrieve related objects?

Like I would like to retrieve something like this (retrieve A through an input binding)

public class A {
   public int Id {get; set;}
   public int BId {get; set;}  
   public virtual B BObject {get; set;}
}

public class B {
   public int Id {get; set;}
}

sebader avatar Jun 27 '22 18:06 sebader

This isn't functionality that exists at this time - the objects retrieve can only have basic types as properties so things like links to other objects isn't possible.

I'm going to update the title to change this to be a feature request instead, feel free to change it more if you have additional details/questions to ask!

Charles-Gagnon avatar Jun 27 '22 20:06 Charles-Gagnon

ah got it, thanks. @Charles-Gagnon is that something you have on your roadmap already or probably not coming any time soon?

sebader avatar Jul 01 '22 17:07 sebader

@dzsquared to confirm but I believe this is currently not on our roadmap.

lucyzhang929 avatar Jul 01 '22 18:07 lucyzhang929

That is correct, it is not currently on the roadmap. @sebader - I'm happy to chat more specifics around the scenario and potential alternatives, including querying additional attributes as a JSON string.

dzsquared avatar Jul 01 '22 18:07 dzsquared