Class PgNameAttribute
Indicates that this property or field correspond to a PostgreSQL field with the specified name
Inherited Members
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter)]
public class PgNameAttribute : Attribute
Constructors
PgNameAttribute(String)
Indicates that this property or field correspond to a PostgreSQL field with the specified name
Declaration
public PgNameAttribute(string pgName)
Parameters
Type | Name | Description |
---|---|---|
String | pgName | The name of PostgreSQL field that corresponds to this CLR property or field |
Properties
PgName
The name of PostgreSQL field that corresponds to this CLR property or field
Declaration
public string PgName { get; }
Property Value
Type | Description |
---|---|
String |