Class ExampleMetaAttribute

Assembly: redb.Examples.dll

Attribute to mark example classes with metadata.
Used for parsing examples into ExampleProps for website.

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class ExampleMetaAttribute : Attribute

Inheritance

ObjectAttributeExampleMetaAttribute

Properties

Category

Category for navigation (CRUD, Query, Trees, etc).

public string Category { get; }

Difficulty

Difficulty level 1-5.

public int Difficulty { get; }

Id

Unique example ID (E001, E010).

public string Id { get; }

Order

Display order on website (set via property).

public int Order { get; set; }

RelatedApis

Related API methods for linking to documentation (e.g., "IRedbService.Query", "ITreeQueryable.WhereRoots").

public string[] RelatedApis { get; set; }

Tags

Tags for filtering (SaveAsync, Where, etc).

public string[] Tags { get; }

Tier

License tier (Free, Pro, Enterprise).

public ExampleTier Tier { get; }

Title

Example title for display.

public string Title { get; }

Constructors