|
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Diagnostics;
namespace Bulasoft.Common.SchemaGenerators
{
[DebuggerDisplay("{Name}: {DBTypeName}")]
public sealed class FieldDescriptor
{
public string Name;
public Type FieldSystemType;
public int? Length;
public int Scale;
public int Precision;
public bool IsIndexed;
public bool HasNulls = true;
private bool _pk;
public bool IsPK
{
get { return _pk; }
set
{
_pk = value;
if (value)
HasNulls = false;
}
}
public bool IsFK
{
get { return FKTable != null && FKField != null; }
}
public TableDescriptor FKTable;
public FieldDescriptor FKField;
public string FKTableName
{
get { return FKTable.Name; }
}
public string DBTypeName;
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.