Files
using.cash/Common/Interfaces/IDatabaseColumnAware.cs
T
2018-12-25 21:16:26 +01:00

28 lines
892 B
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/* 2018-Dec-22: This is a started refactoring of the Database namespace into separate derived classes
* from a generic that contains most of the gruntwork. It is not nearly complete and
* the code is still experimental, not taken into production yet.
*/
namespace Swarmops.Common.Interfaces
{
[SuppressMessage("ReSharper", "TypeParameterCanBeVariant")]
public interface IDatabaseColumnAware<TBasic>
{
// these could all be static but C# doesn't allow static methods in interfaces
string DbTableName { get; }
string[] DbColumnSequence { get; }
string DbIdentityColumn { get; }
TBasic FromDataReader (IDataReader reader);
}
}