Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding IDataProvider and IFileService
- Loading branch information
1 parent
bf22fc6
commit 5f1ef77
Showing
7 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
using RunTimeCodeGenerator.ClassGeneration; | ||
|
||
namespace ExcelMapper.Repository | ||
{ | ||
public interface IDataProvider | ||
{ | ||
void CreateTable<T>(); | ||
IEnumerable<string> GetTableNames(); | ||
IEnumerable<Property> GetColumns(string workSheet); | ||
IEnumerable<T> Get<T>(string workSheet); | ||
void Put<T>(IEnumerable<T> values); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
|
||
namespace ExcelMapper.Repository | ||
{ | ||
public interface IFileService | ||
{ | ||
bool Exists(string filePath); | ||
void Create(string filePath); | ||
DateTime GetLastModifiedDate(string filePath); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters