supabase-community / postgrest-csharp

A C# Client library for Postgrest
https://supabase-community.github.io/postgrest-csharp/api/Postgrest.html
MIT License
114 stars 22 forks source link

Attribute to ignore a property in a class #40

Closed pintariching closed 2 years ago

pintariching commented 2 years ago

Would it be possible to add an attribute that ignores a property?

For example something simple like this:

[Ignore]
public List<Item> Items { get; set; }
acupofjose commented 2 years ago

You can just use JsonIgnore from the bundled Json.NET package!

pintariching commented 2 years ago

Thank you this works perfectly!