Files
LeafWeb/Core/Models/LeafInput.cs
T
poprhythm 15d911c86b Add PhotosynthesisType and start SSH work
modified:   Core.Tests/Core.Tests.csproj
	modified:   Core.Tests/Parsers/FluxnetSiteCsvParserTests.cs
	new file:   Core.Tests/Remote/PiscalSshClientTests.cs
	modified:   Core/Core.csproj
	modified:   Core/DAL/LeafWebContext.cs
	modified:   Core/DAL/LeafWebInitializer.cs
	modified:   Core/Models/LeafInput.cs
	new file:   Core/Models/PhotosynthesisType.cs

	new file:   Core/Remote/IPiscalClient.cs

Get Piscal
2016-02-09 15:27:02 -05:00

35 lines
912 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LeafWeb.Core.Models
{
public class LeafInput
{
public int Id { get; set; }
public virtual ICollection<LeafInputFile> LeafInputFiles { get; set; }
public virtual ICollection<LeafInputStatus> LeafInputStatuses { get; set; }
[Required(ErrorMessage = "Name required")]
public string Name { get; set; }
[Required(ErrorMessage = "An email address is required")]
public string Email { get; set; }
[Required(ErrorMessage = "A unique identifier is required")]
public string Identifier { get; set; }
[Required(ErrorMessage = "")]
public string SiteId { get; set; }
public virtual PhotosynthesisType Photosynthesis { get; set; }
[DataType(DataType.Date)]
[Required]
public DateTime Created { get; set; }
[DataType(DataType.Date)]
public DateTime? Processed { get; set; }
}
}