From 69c4b573a5ca252acb7f1bd844886f2953dfa2cb Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 13 Nov 2020 16:57:16 +0100 Subject: [PATCH] - add isKey property --- GBase/Attributes/GBaseColumnAttribute.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GBase/Attributes/GBaseColumnAttribute.cs b/GBase/Attributes/GBaseColumnAttribute.cs index 58d7990..663fb7b 100644 --- a/GBase/Attributes/GBaseColumnAttribute.cs +++ b/GBase/Attributes/GBaseColumnAttribute.cs @@ -13,6 +13,11 @@ namespace GBase.Attributes [AttributeUsage(AttributeTargets.Property)] public class GBaseColumnAttribute : Attribute { - + public GBaseColumnAttribute(bool isKey = false) + { + IsKey = isKey; + } + + public bool IsKey { get; } } } \ No newline at end of file