ShippingDocumentToFiles fix;
This commit is contained in:
parent
aa8f9e21d2
commit
e54612f923
|
|
@ -1,6 +1,6 @@
|
||||||
namespace FruitBank.Common;
|
namespace FruitBank.Common;
|
||||||
|
|
||||||
public enum DocumentType : byte
|
public enum DocumentType : int
|
||||||
{
|
{
|
||||||
NotSet = 0,
|
NotSet = 0,
|
||||||
Unknown = 5,
|
Unknown = 5,
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,25 @@
|
||||||
using FruitBank.Common.Interfaces;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using FruitBank.Common.Interfaces;
|
||||||
using LinqToDB.Mapping;
|
using LinqToDB.Mapping;
|
||||||
using Mango.Nop.Core.Entities;
|
using Mango.Nop.Core.Entities;
|
||||||
|
|
||||||
namespace FruitBank.Common.Entities;
|
namespace FruitBank.Common.Entities;
|
||||||
|
|
||||||
[Table(Name = FruitBankConstClient.ShippingDocumentToFilesDbTableName)]
|
[LinqToDB.Mapping.Table(Name = FruitBankConstClient.ShippingDocumentToFilesDbTableName)]
|
||||||
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.ShippingDocumentToFilesDbTableName)]
|
[System.ComponentModel.DataAnnotations.Schema.Table(FruitBankConstClient.ShippingDocumentToFilesDbTableName)]
|
||||||
public class ShippingDocumentToFiles : MgEntityBase, IShippingDocumentToFiles
|
public class ShippingDocumentToFiles : MgEntityBase, IShippingDocumentToFiles
|
||||||
{
|
{
|
||||||
public int FilesId { get; set; }
|
public int FilesId { get; set; }
|
||||||
public int ShippingDocumentId { get; set; }
|
public int ShippingDocumentId { get; set; }
|
||||||
public DocumentType DocumentType { get; set; }
|
|
||||||
|
public int DocumentTypeId { get; set; }
|
||||||
|
|
||||||
|
[NotColumn, NotMapped]
|
||||||
|
public DocumentType DocumentType
|
||||||
|
{
|
||||||
|
get => (DocumentType)DocumentTypeId;
|
||||||
|
set => DocumentTypeId = (int)value;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[Association(ThisKey = nameof(FilesId), OtherKey = nameof(Files.Id), CanBeNull = true)]
|
[Association(ThisKey = nameof(FilesId), OtherKey = nameof(Files.Id), CanBeNull = true)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue