Table of Contents

Class PropertyModel

Namespace
LinqToDB.DataModel
Assembly
linq2db.Tools.dll

Contains basic class property attributes.

public sealed class PropertyModel
Inheritance
PropertyModel
Extension Methods

Constructors

PropertyModel(string)

public PropertyModel(string name)

Parameters

name string

PropertyModel(string, IType)

public PropertyModel(string name, IType type)

Parameters

name string
type IType

Properties

CustomAttributes

List of additional custom attributes. Doesn't include metadata attributes.

public List<CodeAttribute>? CustomAttributes { get; set; }

Property Value

List<CodeAttribute>

HasSetter

Gets or sets property setter status.

public bool HasSetter { get; set; }

Property Value

bool

IsDefault

Gets or sets property default implementation attribute.

public bool IsDefault { get; set; }

Property Value

bool

Modifiers

Gets or sets property modifiers.

public Modifiers Modifiers { get; set; }

Property Value

Modifiers

Name

Gets or sets property name.

public string Name { get; set; }

Property Value

string

Summary

Gets or sets summary section text for property xml-doc comment.

public string? Summary { get; set; }

Property Value

string

TrailingComment

Gets or sets trailing code comment after property definition. Example:

public string MyProperty { get; set; } // this is property comment
public string? TrailingComment { get; set; }

Property Value

string

Type

Gets or sets property type.

public IType? Type { get; set; }

Property Value

IType