Hi
In an ASP.net Core project I have a file called Create.cshtml.cs that has the following line
public Policy Policy { get; set; }
Does this initiate the following class code. As a VB.net code I haven't really used classes so am not sure how all of this works
namespace WebApplication1.Model
{
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
public class Policy
{
[Key]
public int PolicyID { get; set; }
public string Email { get; set; }
public string Status { get; set; }
[Column("Policy Number")]
public string PolicyNumber { get; set; }
[Column("New/Renewal")]
public string New_Renewal { get; set; }
[Column("Class of Bussiness")]
public string Class_Bussiness { get; set; }
public string Binder { get; set; }
public string? Order { get; set; }
[Column("Type of Risk")]
public string? TypeOfRisk { get; set; }
public string Month { get; set; }
public string? Year { get; set; }
[Column("Date of Inception")]
public DateTime DateOfInception { get; set; }
[Column("Expiry Date")]
public DateTime ExpiryDate { get; set; }
[Column("Assured Name")]
public string? AssuredName { get; set; }
public string? Broker { get; set; }
public string? Country { get; set; }
public string? CCY { get; set; }
[Column("Fees or Turnover")]
public decimal FeesOrTurnover { get; set; }
public string? Profession { get; set; }
[Column("Limit of Indemnity")]
public decimal LimitOfIndemnity { get; set; }
public string Reinstatement { get; set; }
[Column("AGG/AOC")]
public string? AFF_AOC { get; set; }
public string? Layer { get; set; }
public decimal Excess { get; set; }
[Column("Costs inclusive/Excluding costs")]
public decimal CostsInclusive_ExcludingCosts { get; set; }
[Column("Premium 100%")]
public decimal Premium100 { get; set; }
[Column("Premium of Line")]
public decimal PremiumOfLine { get; set; }
[Column("Net Premium to Aquilano")]
public decimal NetPremiumtoAquilano { get; set; }
[Column("Line %")]
public decimal Line { get; set; }
public decimal? Fee { get; set; }
[Column("Premium Due Date")]
public DateTime? PremiumDueDate { get; set; }
public decimal Brokerage { get; set; }
public decimal Caytons { get; set; }
public decimal LCU { get; set; }
public decimal? Tax { get; set; }
[Column("Landmark Commission %")]
public decimal LandmarkCommission { get; set; }
[Column("Total Brokerage ")]
public decimal TotalBrokerage { get; set; }
[Column("Landmark Commission Amount")]
public decimal LandmarkCommissionAmount { get; set; }
[Column("Broker Brokerage Amount")]
public decimal BrokerBrokerageAmount { get; set; }
[Column("Caytons Brokerage Amount")]
public decimal CaytonsBrokerageAmount { get; set; }
[Column("LCU Brokerage Amount ")]
public decimal LCUBrokerageAmount { get; set; }
[Column("UK Policy Fee (Landmark Policy Fee)")]
public decimal LandmarkPolicyFee { get; set; }
public decimal IPT { get; set; }
[Column("Net to Landmark")]
public decimal NettoLandmark { get; set; }
[Column("Net to Landmark Inc Tax")]
public decimal NettoLandmarkIncTax { get; set; }
[Column("Net to Aquliano (Excl IPT)")]
public decimal NettoAquliano { get; set; }
[Column("Due Date")]
public DateTime? DueDate { get; set; }
[Column("Debit note issued")]
public string DebitNoteIssued { get; set; }
[Column("Debit note date")]
public DateTime DebitNoteDate { get; set; }
[Column("Paid Date")]
public DateTime PaidDate { get; set; }
[Column("Paid Amount ")]
public decimal PaidAmount { get; set; }
public decimal Difference { get; set; }
[Column("Bank Ref")]
public string BankRef { get; set; }
[Column("Paid To Aquilano")]
public decimal? PaidToAquilano { get; set; }
[Column("Paid To Aquilano Bdx Date")]
public DateTime PaidToAquilanoBdxDate { get; set; }
public string Comments { get; set; }
public string Check { get; set; }
public ICollection<UploadFile> Files { get; set; }
}
}