mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -04:00
Moved source code under src folder - massive change
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System.Data;
|
||||
|
||||
namespace Marr.Data.Mapping
|
||||
{
|
||||
public class ColumnInfo : IColumnInfo
|
||||
{
|
||||
public ColumnInfo()
|
||||
{
|
||||
IsPrimaryKey = false;
|
||||
IsAutoIncrement = false;
|
||||
ReturnValue = false;
|
||||
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; }
|
||||
public ParameterDirection ParamDirection { get; set; }
|
||||
|
||||
public string TryGetAltName()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(AltName) && AltName != Name)
|
||||
{
|
||||
return AltName;
|
||||
}
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user