Class SequenceNameAttribute
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
stringSequence generator name.
SequenceNameAttribute(string?, string)
Creates attribute instance.
public SequenceNameAttribute(string? configuration, string sequenceName)
Parameters
configuration
stringMapping schema configuration name. See LinqToDB.Configuration.
sequenceName
stringSequence generator name.
Properties
Schema
Gets or sets sequence generator schema name.
public string? Schema { get; set; }
Property Value
SequenceName
Gets or sets sequence generator name.
public string SequenceName { get; set; }
Property Value
Methods
GetObjectID()
Returns mapping attribute id, based on all attribute options.
public override string GetObjectID()