using System;
// ReSharper disable once CheckNamespace
namespace NpgsqlTypes
{
///
/// Indicates that this property or field correspond to a PostgreSQL field with the specified name
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter)]
public class PgNameAttribute : Attribute
{
///
/// The name of PostgreSQL field that corresponds to this CLR property or field
///
public string PgName { get; private set; }
///
/// Indicates that this property or field correspond to a PostgreSQL field with the specified name
///
/// The name of PostgreSQL field that corresponds to this CLR property or field
public PgNameAttribute(string pgName)
{
PgName = pgName;
}
}
}