mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
added marr.datamapper source code for easy debugging.
This commit is contained in:
parent
58a05fcef8
commit
3cdff3bb71
96 changed files with 9198 additions and 363 deletions
38
Marr.Data/Mapping/ColumnInfo.cs
Normal file
38
Marr.Data/Mapping/ColumnInfo.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Marr.Data.Mapping
|
||||
{
|
||||
public class ColumnInfo : IColumnInfo
|
||||
{
|
||||
public ColumnInfo()
|
||||
{
|
||||
IsPrimaryKey = false;
|
||||
IsAutoIncrement = false;
|
||||
ReturnValue = false;
|
||||
ParamDirection = System.Data.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 System.Data.ParameterDirection ParamDirection { get; set; }
|
||||
|
||||
public string TryGetAltName()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(AltName) && AltName != Name)
|
||||
{
|
||||
return AltName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue