namespace BusinessLogic.Entities { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; public partial class Import { public Import() { Rows = new HashSet(); ProcessedTransactions = new HashSet(); SuspenseItems = new HashSet(); FileImports = new HashSet(); StatusHistories = new HashSet(); EventLogs = new HashSet(); Metadata = new HashSet(); } [Required, Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } public int ImportTypeId { get; set; } public virtual ImportType ImportType { get; set; } public DateTime CreatedDate { get; set; } [Required] public int CreatedByUserId { get; set; } public virtual User CreatedByUser { get; set; } [StringLength(255)] public string Notes { get; set; } public int NumberOfRows { get; set; } public DateTime? ReversedDate { get; set; } // TODO: How does this work for AccountHolder imports? Does type need to have a 'Reversible' flag? public virtual ICollection Rows { get; set; } public virtual ICollection ProcessedTransactions { get; set; } public virtual ICollection SuspenseItems { get; set; } public virtual ICollection FileImports { get; set; } public virtual ICollection StatusHistories { get; set; } public virtual ICollection EventLogs { get; set; } public virtual ICollection Metadata { get; set; } } }