Table of Contents

Class IgnoreConventionsAttribute

Namespace
Cratis.Applications.MongoDB
Assembly
Cratis.Applications.MongoDB.dll

Used to mark models for ignoring specific convention packs.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class IgnoreConventionsAttribute : Attribute
Inheritance
IgnoreConventionsAttribute
Inherited Members

Remarks

Initializes a new instance of the IgnoreConventionsAttribute class.

Constructors

IgnoreConventionsAttribute(params string[])

Used to mark models for ignoring specific convention packs.

public IgnoreConventionsAttribute(params string[] conventionPacks)

Parameters

conventionPacks string[]

Any specific convention packs to ignore. If none are given, all convention packs will be ignored.

Remarks

Initializes a new instance of the IgnoreConventionsAttribute class.

Properties

ConventionPacks

Gets convention packs to ignore.

public string[] ConventionPacks { get; }

Property Value

string[]

IgnoreAll

Gets whether or not to ignore all convention packs.

public bool IgnoreAll { get; }

Property Value

bool