Split the database objects out into a seperate project. Needs renaming in some areas and updates in the installer. Otherwise first version of a proper data DLL file.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace AdvertisingProfitControlData
|
||||
{
|
||||
public class Invoice
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Column(TypeName = "date")]
|
||||
public DateTime InvoiceDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(256)]
|
||||
public string InvoiceNumber { get; set; }
|
||||
|
||||
public decimal? InvoiceNetAmountAtCost { get; set; }
|
||||
|
||||
public decimal? InvoiceNetAmount { get; set; }
|
||||
|
||||
[StringLength(256)]
|
||||
public string InvoiceNote { get; set; }
|
||||
|
||||
public int FkSupplierId { get; set; }
|
||||
|
||||
public int FkDateId { get; set; }
|
||||
|
||||
public virtual WeekEndingDate WeekEndingDate { get; set; }
|
||||
|
||||
public virtual Supplier Supplier { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user