using Npgsql;
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
namespace NpgsqlTypes
{
///
/// Indicates that the PostgreSQL enum value differs from the .NET value.
///
[AttributeUsage(AttributeTargets.Field)]
public class EnumLabelAttribute : Attribute
{
///
/// The database label that corresponds to the .NET enum value on which this attribute is placed.
///
public string Label { get; private set; }
///
/// Indicates that the PostgreSQL enum value differs from the .NET value.
///
/// What label to use instead.
public EnumLabelAttribute(string label)
{
Label = label;
}
}
}