From ac6d25f74092c66ef3ba1b7df9151e666a95a526 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 25 Dec 2018 21:16:26 +0100 Subject: [PATCH] Work on Db refactor --- Common/Interfaces/IDatabaseColumnAware.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Common/Interfaces/IDatabaseColumnAware.cs b/Common/Interfaces/IDatabaseColumnAware.cs index 57106c72..b17a7bba 100644 --- a/Common/Interfaces/IDatabaseColumnAware.cs +++ b/Common/Interfaces/IDatabaseColumnAware.cs @@ -17,9 +17,11 @@ namespace Swarmops.Common.Interfaces [SuppressMessage("ReSharper", "TypeParameterCanBeVariant")] public interface IDatabaseColumnAware { + // these could all be static but C# doesn't allow static methods in interfaces + string DbTableName { get; } - string[] DbFieldSequence { get; } - string DbIdentityField { get; } - TBasic FromDataReader (IDataReader reader); // this could be static but C# doesn't allow static methods in interfaces + string[] DbColumnSequence { get; } + string DbIdentityColumn { get; } + TBasic FromDataReader (IDataReader reader); } }