- add isKey Property

master
Simon G 5 years ago
parent f1c89018ed
commit 168823cfde
  1. 2
      GBase/Factories/IGBaseColumnFactory.cs
  2. 4
      GBase/GBaseColumn.cs
  3. 1
      GBase/Interfaces/IGBaseColumn.cs

@ -17,6 +17,6 @@ namespace GBase.Factories
/// Creates an <see cref="IGBaseColumn"/>
/// </summary>
/// <returns>A newly created instance of the implementation for <see cref="IGBaseColumn"/></returns>
IGBaseColumn Create(string name, Type type);
IGBaseColumn Create(string name, Type type, bool isKey);
}
}

@ -16,14 +16,16 @@ namespace GBase
/// <summary>
/// A column of a <see cref="IGBaseTable"/>
/// </summary>
public GBaseColumn(string name, Type type)
public GBaseColumn(string name, Type type, bool isKey)
{
Name = name;
Type = type;
IsKey = isKey;
}
public string Name { get; }
public Type Type { get; }
public bool IsKey { get; }
/// <summary>
/// The <see cref="IAsyncDisposable.DisposeAsync"/> method

@ -13,5 +13,6 @@ namespace GBase.Interfaces
{
string Name { get; }
Type Type { get; }
bool IsKey { get; }
}
}
Loading…
Cancel
Save