5ce9e51ae7
Microsoft Excel files can be used to import/export devices. Several import bugs were also fixed in the process.
34 lines
911 B
C#
34 lines
911 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Disco.Models.Services.Devices.Importing
|
|
{
|
|
public interface IDeviceImportDataReader : IDisposable
|
|
{
|
|
void Reset();
|
|
bool Read();
|
|
|
|
int Index { get; }
|
|
|
|
int GetRowNumber(int Index);
|
|
|
|
string GetString(int ColumnIndex);
|
|
IEnumerable<string> GetStrings(int ColumnIndex);
|
|
|
|
bool TryGetNullableInt(int ColumnIndex, out int? value);
|
|
|
|
bool TryGetNullableBool(int ColumnIndex, out bool? value);
|
|
|
|
bool TryGetNullableDateTime(int ColumnIndex, out DateTime? value);
|
|
|
|
bool TestAllNotEmpty(int ColumnIndex);
|
|
bool TestAllNullableInt(int ColumnIndex);
|
|
bool TestAllInt(int ColumnIndex);
|
|
bool TestAllNullableBool(int ColumnIndex);
|
|
bool TestAllNullableDateTime(int ColumnIndex);
|
|
}
|
|
}
|