Table of Contents

Class SequenceNameAttribute

Namespace
LinqToDB.Mapping
Assembly
linq2db.dll

Specifies value generation sequence for mapped property of field. Currently it supported only for:

  • Firebird generators
  • Oracle sequences
  • PostgreSQL serial pseudotypes/sequences
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = true)]
public class SequenceNameAttribute : MappingAttribute, _Attribute
Inheritance
SequenceNameAttribute
Implements
Inherited Members
Extension Methods

Constructors

SequenceNameAttribute(string)

Creates attribute instance.

public SequenceNameAttribute(string sequenceName)

Parameters

sequenceName string

Sequence generator name.

SequenceNameAttribute(string?, string)

Creates attribute instance.

public SequenceNameAttribute(string? configuration, string sequenceName)

Parameters

configuration string

Mapping schema configuration name. See LinqToDB.Configuration.

sequenceName string

Sequence generator name.

Properties

Schema

Gets or sets sequence generator schema name.

public string? Schema { get; set; }

Property Value

string

SequenceName

Gets or sets sequence generator name.

public string SequenceName { get; set; }

Property Value

string

Methods

GetObjectID()

Returns mapping attribute id, based on all attribute options.

public override string GetObjectID()

Returns

string