dimanche 15 novembre 2020

Determine which properties in a class has a special attribute

I have a class with some property like this:

public List<Some1POCO> SomeProp1List{ set; get; }

[SomeAttribute]
public List<Some2POCO> SomeProp2List { set; get; }
.
.
.

I want to find out properties that has "SomeAttribute" and then include this properties in a EF query

how to use it as a condition in LINQ queries ?





Aucun commentaire:

Enregistrer un commentaire