Rename Core Models to Core Entities

modified:   Core.Tests/Charter/CurveDataConverterTests.cs
	modified:   Core.Tests/Parsers/CntrlComparisonParserTests.cs
	modified:   Core.Tests/Parsers/LeafInputCsvParserTests.cs
	modified:   Core.Tests/Remote/PiscalSshClientTests.cs
	modified:   Core/Charter/CurveDataConverter.cs
	modified:   Core/Core.csproj
	modified:   Core/DAL/DataService.cs
	modified:   Core/DAL/LeafWebContext.cs
	modified:   Core/DAL/LeafWebInitializer.cs
	renamed:    Core/Models/CntrlComparison.cs -> Core/Entities/CntrlComparison.cs
	renamed:    Core/Models/CntrlComparisonFittingInfo.cs -> Core/Entities/CntrlComparisonFittingInfo.cs
	renamed:    Core/Models/CntrlComparisonPhotosyntheticInfo.cs -> Core/Entities/CntrlComparisonPhotosyntheticInfo.cs
	renamed:    Core/Models/FluxnetSite.cs -> Core/Entities/FluxnetSite.cs
	renamed:    Core/Models/LeafInput.cs -> Core/Entities/LeafInput.cs
	renamed:    Core/Models/LeafInputData.cs -> Core/Entities/LeafInputData.cs
	renamed:    Core/Models/LeafInputFile.cs -> Core/Entities/LeafInputFile.cs
	renamed:    Core/Models/LeafInputInfo.cs -> Core/Entities/LeafInputInfo.cs
	renamed:    Core/Models/LeafInputPhotosynthetic.cs -> Core/Entities/LeafInputPhotosynthetic.cs
	renamed:    Core/Models/LeafInputSite.cs -> Core/Entities/LeafInputSite.cs
	renamed:    Core/Models/LeafInputStatus.cs -> Core/Entities/LeafInputStatus.cs
	renamed:    Core/Models/PhotosynthesisType.cs -> Core/Entities/PhotosynthesisType.cs
	modified:   Core/Parsers/CntrlComparisonParser.cs
	modified:   Core/Parsers/FluxnetSiteCsvParser.cs
	modified:   Core/Parsers/LeafInputCsvParser.cs
	modified:   Web/Controllers/LeafCharterController.cs
	modified:   Web/Controllers/LeafInputController.cs
	modified:   Web/ViewModels/LeafInput/CreateViewModel.cs
This commit is contained in:
2016-02-09 13:49:08 -05:00
parent d101c2294f
commit 279551e9be
28 changed files with 44 additions and 53 deletions
@@ -1,6 +1,6 @@
using System.Linq; using System.Linq;
using LeafWeb.Core.Charter; using LeafWeb.Core.Charter;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers; using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
using NUnit.Framework; using NUnit.Framework;
@@ -1,4 +1,4 @@
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers; using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
using NUnit.Framework; using NUnit.Framework;
@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers; using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
using NUnit.Framework; using NUnit.Framework;
+1 -1
View File
@@ -1,4 +1,4 @@
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using NUnit.Framework; using NUnit.Framework;
namespace LeafWeb.Core.Tests.Remote namespace LeafWeb.Core.Tests.Remote
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Charter namespace LeafWeb.Core.Charter
+12 -12
View File
@@ -67,19 +67,19 @@
<Compile Include="DAL\DataService.cs" /> <Compile Include="DAL\DataService.cs" />
<Compile Include="DAL\LeafWebContext.cs" /> <Compile Include="DAL\LeafWebContext.cs" />
<Compile Include="DAL\LeafWebInitializer.cs" /> <Compile Include="DAL\LeafWebInitializer.cs" />
<Compile Include="Models\PhotosynthesisType.cs" /> <Compile Include="Entities\PhotosynthesisType.cs" />
<Compile Include="Remote\IPiscalClient.cs" /> <Compile Include="Remote\IPiscalClient.cs" />
<Compile Include="Models\CntrlComparison.cs" /> <Compile Include="Entities\CntrlComparison.cs" />
<Compile Include="Models\CntrlComparisonFittingInfo.cs" /> <Compile Include="Entities\CntrlComparisonFittingInfo.cs" />
<Compile Include="Models\CntrlComparisonPhotosyntheticInfo.cs" /> <Compile Include="Entities\CntrlComparisonPhotosyntheticInfo.cs" />
<Compile Include="Models\FluxnetSite.cs" /> <Compile Include="Entities\FluxnetSite.cs" />
<Compile Include="Models\LeafInput.cs" /> <Compile Include="Entities\LeafInput.cs" />
<Compile Include="Models\LeafInputInfo.cs" /> <Compile Include="Entities\LeafInputInfo.cs" />
<Compile Include="Models\LeafInputData.cs" /> <Compile Include="Entities\LeafInputData.cs" />
<Compile Include="Models\LeafInputFile.cs" /> <Compile Include="Entities\LeafInputFile.cs" />
<Compile Include="Models\LeafInputPhotosynthetic.cs" /> <Compile Include="Entities\LeafInputPhotosynthetic.cs" />
<Compile Include="Models\LeafInputSite.cs" /> <Compile Include="Entities\LeafInputSite.cs" />
<Compile Include="Models\LeafInputStatus.cs" /> <Compile Include="Entities\LeafInputStatus.cs" />
<Compile Include="Parsers\FluxnetSiteCsvParser.cs" /> <Compile Include="Parsers\FluxnetSiteCsvParser.cs" />
<Compile Include="Utility\BoolTypeConverter.cs" /> <Compile Include="Utility\BoolTypeConverter.cs" />
<Compile Include="Parsers\CntrlComparisonParser.cs" /> <Compile Include="Parsers\CntrlComparisonParser.cs" />
+1 -1
View File
@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Data.Entity; using System.Data.Entity;
using System.Linq; using System.Linq;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
namespace LeafWeb.Core.DAL namespace LeafWeb.Core.DAL
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Data.Entity; using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions; using System.Data.Entity.ModelConfiguration.Conventions;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
namespace LeafWeb.Core.DAL namespace LeafWeb.Core.DAL
{ {
+1 -1
View File
@@ -1,6 +1,6 @@
using System.Data.Entity; using System.Data.Entity;
using System.Linq; using System.Linq;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers; using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
@@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// Part of LeafOutput /// Part of LeafOutput
@@ -1,7 +1,6 @@
using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// First model prediction is calculated at each sampling point. /// First model prediction is calculated at each sampling point.
@@ -1,7 +1,6 @@
using LeafWeb.Core.Parsers; using LeafWeb.Core.Utility;
using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// The second section gives photosynthesis for each of the three limitation states at selected values of intercellular /// The second section gives photosynthesis for each of the three limitation states at selected values of intercellular
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
public class FluxnetSite public class FluxnetSite
{ {
@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
public class LeafInput public class LeafInput
{ {
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// A/Ci data for a variety of analyses, including photosynthesis, stomatal conductance, internal conductance, water use efficiency. /// A/Ci data for a variety of analyses, including photosynthesis, stomatal conductance, internal conductance, water use efficiency.
@@ -1,6 +1,4 @@
using System.ComponentModel.DataAnnotations; namespace LeafWeb.Core.Entities
namespace LeafWeb.Core.Models
{ {
public class LeafInputFile public class LeafInputFile
{ {
@@ -1,8 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// Descriptive information about the investigator, /// Descriptive information about the investigator,
@@ -1,8 +1,6 @@
using System.ComponentModel.DataAnnotations; using LeafWeb.Core.Utility;
using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// Photosynthetic parameters of Leaf Input /// Photosynthetic parameters of Leaf Input
@@ -1,8 +1,6 @@
using System.ComponentModel.DataAnnotations; using LeafWeb.Core.Utility;
using LeafWeb.Core.Parsers;
using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// Contains info about the site such as elevation, canopy height, site ID, etc /// Contains info about the site such as elevation, canopy height, site ID, etc
@@ -1,6 +1,6 @@
using System; using System;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
/// <summary> /// <summary>
/// Status of processing LeafInput /// Status of processing LeafInput
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations.Schema;
namespace LeafWeb.Core.Models namespace LeafWeb.Core.Entities
{ {
public class PhotosynthesisType public class PhotosynthesisType
{ {
+1 -1
View File
@@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Parsers namespace LeafWeb.Core.Parsers
+1 -1
View File
@@ -3,7 +3,7 @@ using System.IO;
using System.Linq; using System.Linq;
using CsvHelper; using CsvHelper;
using CsvHelper.Configuration; using CsvHelper.Configuration;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
namespace LeafWeb.Core.Parsers namespace LeafWeb.Core.Parsers
{ {
+1 -1
View File
@@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using CsvHelper; using CsvHelper;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility; using LeafWeb.Core.Utility;
namespace LeafWeb.Core.Parsers namespace LeafWeb.Core.Parsers
+1 -1
View File
@@ -1,7 +1,7 @@
using System; using System;
using System.IO; using System.IO;
using System.Text; using System.Text;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using Renci.SshNet; using Renci.SshNet;
namespace LeafWeb.Core namespace LeafWeb.Core
+1 -1
View File
@@ -6,7 +6,7 @@ using System.Web.Mvc;
using System.Web.UI.DataVisualization.Charting; using System.Web.UI.DataVisualization.Charting;
using System.Web.UI.WebControls; using System.Web.UI.WebControls;
using LeafWeb.Core.Charter; using LeafWeb.Core.Charter;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Core.Parsers; using LeafWeb.Core.Parsers;
using LeafWeb.Web.Charter; using LeafWeb.Web.Charter;
+1 -1
View File
@@ -3,7 +3,7 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using System.Web.Mvc; using System.Web.Mvc;
using LeafWeb.Core.Models; using LeafWeb.Core.Entities;
using LeafWeb.Web.Attributes; using LeafWeb.Web.Attributes;
using LeafWeb.Web.ViewModels; using LeafWeb.Web.ViewModels;
using LeafWeb.Web.ViewModels.LeafInput; using LeafWeb.Web.ViewModels.LeafInput;
+3 -3
View File
@@ -41,15 +41,15 @@ namespace LeafWeb.Web.ViewModels.LeafInput
var config = var config =
new MapperConfiguration(cfg => new MapperConfiguration(cfg =>
{ {
cfg.CreateMap<CreateViewModel, Core.Models.LeafInput>() cfg.CreateMap<CreateViewModel, Core.Entities.LeafInput>()
.ForMember(dest => dest.PhotosynthesisType, opt => opt.Ignore()); .ForMember(dest => dest.PhotosynthesisType, opt => opt.Ignore());
}); });
Mapper = config.CreateMapper(); Mapper = config.CreateMapper();
} }
public Core.Models.LeafInput GetFileInput(DataService db) public Core.Entities.LeafInput GetFileInput(DataService db)
{ {
var leafInput = new Core.Models.LeafInput(); var leafInput = new Core.Entities.LeafInput();
Mapper.Map(this, leafInput); Mapper.Map(this, leafInput);
leafInput.PhotosynthesisType = db.GetPhotosynthesisType(PhotosynthesisType.Selected); leafInput.PhotosynthesisType = db.GetPhotosynthesisType(PhotosynthesisType.Selected);