Simplified setup & improved error handling

This commit is contained in:
2016-03-19 21:25:28 +01:00
parent 2ee1087268
commit afa973306d
78 changed files with 1881 additions and 510 deletions
+12
View File
@@ -25,6 +25,7 @@
// THE SOFTWARE.
using System.Collections;
using System.Collections.Generic;
using Ntp.Analyzer.Log;
namespace Ntp.Data
{
@@ -33,6 +34,17 @@ namespace Ntp.Data
/// </summary>
public abstract class DataMapper<T> : IEnumerable<T>
{
protected DataMapper(LogBase log)
{
this.log = log;
}
private LogBase log;
protected LogBase Log {
get { return log; }
}
/// <summary>
/// Read all data from table in a sequential manner.
/// </summary>
+3 -1
View File
@@ -24,12 +24,14 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using Ntp.Analyzer.Log;
namespace Ntp.Data
{
public abstract class FileDataMapper<T> : DataMapper<T>
{
public FileDataMapper ()
public FileDataMapper (LogBase log)
: base(log)
{
}
+7 -1
View File
@@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Ntp.Data</RootNamespace>
<AssemblyName>Ntp.Data</AssemblyName>
<ReleaseVersion>8.8.5</ReleaseVersion>
<ReleaseVersion>0.3</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -36,4 +36,10 @@
<Compile Include="DataMapper.cs" />
<Compile Include="FileDataMapper.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ntp.Analyzer.Log\Ntp.Analyzer.Log.csproj">
<Project>{909C8729-ED63-4603-85EA-34A1FC4D63D9}</Project>
<Name>Ntp.Analyzer.Log</Name>
</ProjectReference>
</ItemGroup>
</Project>