Implement FruitBank entities, interfaces;
This commit is contained in:
parent
dfb6eebbf3
commit
bcee399426
|
|
@ -0,0 +1,15 @@
|
|||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public interface IPartner : IEntityInt, ITimeStampInfo
|
||||
{
|
||||
string Name { get; set; }
|
||||
string PostalCode { get; set; }
|
||||
string Country { get; set; }
|
||||
string State { get; set; }
|
||||
string County { get; set; }
|
||||
string City { get; set; }
|
||||
string Street { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public interface IShipping : IEntityInt, ITimeStampInfo
|
||||
{
|
||||
int PartnerId { get; set; }
|
||||
DateTime ShippingDate { get; set; }
|
||||
string LicencePlate { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public interface IShippingItem : IEntityInt, ITimeStampInfo
|
||||
{
|
||||
int ShippingDocumentId { get; set; }
|
||||
string Name { get; set; }
|
||||
double NetWeight { get; set; }
|
||||
double GrossWeight { get; set; }
|
||||
double MeasuredNetWeight { get; set; }
|
||||
double MeasuredGrossWeight { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
using AyCode.Interfaces.Entities;
|
||||
using AyCode.Interfaces.TimeStampInfo;
|
||||
|
||||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public interface ISippingDocument: IEntityInt, ITimeStampInfo
|
||||
{
|
||||
public int PartnerId { get; set; }
|
||||
public int ShippingId { get; set; }
|
||||
public int ShippingItemId { get; set; }
|
||||
public DateTime ShippingDate { get; set; }
|
||||
public string Country { get; set; }
|
||||
}
|
||||
|
|
@ -1,6 +1,16 @@
|
|||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public class Partner
|
||||
public class Partner : IPartner
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public string Country { get; set; }
|
||||
public string State { get; set; }
|
||||
public string County { get; set; }
|
||||
public string City { get; set; }
|
||||
public string Street { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
|
|
@ -1,6 +1,12 @@
|
|||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public class Shipping
|
||||
public class Shipping : IShipping
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public int PartnerId { get; set; }
|
||||
public DateTime ShippingDate { get; set; }
|
||||
public string LicencePlate { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
|
|
@ -1,6 +1,15 @@
|
|||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public class ShippingItem
|
||||
public class ShippingItem : IShippingItem
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public int ShippingDocumentId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public double NetWeight { get; set; }
|
||||
public double GrossWeight { get; set; }
|
||||
public double MeasuredNetWeight { get; set; }
|
||||
public double MeasuredGrossWeight { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
|
|
@ -1,6 +1,14 @@
|
|||
namespace FruitBank.Common.Entities;
|
||||
|
||||
public class SippingDocument
|
||||
public class SippingDocument : ISippingDocument
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public int PartnerId { get; set; }
|
||||
public int ShippingId { get; set; }
|
||||
public int ShippingItemId { get; set; }
|
||||
public DateTime ShippingDate { get; set; }
|
||||
public string Country { get; set; }
|
||||
|
||||
public DateTime Created { get; set; }
|
||||
public DateTime Modified { get; set; }
|
||||
}
|
||||
Loading…
Reference in New Issue