Class SequenceNameAttribute
Specifies value generation sequence for mapped property of field. Currently it supported only for:
- Firebird generators
- Oracle sequences
- PostgreSQL serial pseudotypes/sequences
Namespace: LinqToDB.Mapping
Assembly: linq2db.dll
Syntax
public class SequenceNameAttribute : MappingAttribute
Constructors
| Improve this Doc View SourceSequenceNameAttribute(Nullable<String>, String)
Creates attribute instance.
Declaration
public SequenceNameAttribute(string? configuration, string sequenceName)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.String> | configuration | Mapping schema configuration name. See Configuration. |
System.String | sequenceName | Sequence generator name. |
SequenceNameAttribute(String)
Creates attribute instance.
Declaration
public SequenceNameAttribute(string sequenceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sequenceName | Sequence generator name. |
Properties
| Improve this Doc View SourceConfiguration
Gets or sets mapping schema configuration name, for which this attribute should be taken into account.
ProviderName for standard names.
Attributes with null
or empty string Configuration value applied to all configurations (if no attribute found for current configuration).
Declaration
public string? Configuration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
Schema
Gets or sets sequence generator schema name.
Declaration
public string? Schema { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
SequenceName
Gets or sets sequence generator name.
Declaration
public string SequenceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetObjectID()
Declaration
public override string GetObjectID()
Returns
Type | Description |
---|---|
System.String |