Sonarr/Marr.Data/Mapping/ColumnInfo.cs

33 lines
857 B
C#
Raw Normal View History

2013-07-24 05:35:32 +00:00
using System.Data;
namespace Marr.Data.Mapping
{
public class ColumnInfo : IColumnInfo
{
public ColumnInfo()
{
IsPrimaryKey = false;
IsAutoIncrement = false;
ReturnValue = false;
2013-07-24 05:35:32 +00:00
ParamDirection = ParameterDirection.Input;
}
public string Name { get; set; }
public string AltName { get; set; }
public int Size { get; set; }
public bool IsPrimaryKey { get; set; }
public bool IsAutoIncrement { get; set; }
public bool ReturnValue { get; set; }
2013-07-24 05:35:32 +00:00
public ParameterDirection ParamDirection { get; set; }
public string TryGetAltName()
{
if (!string.IsNullOrEmpty(AltName) && AltName != Name)
{
return AltName;
}
2013-07-27 05:02:25 +00:00
return Name;
}
}
}