You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.8 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DSWeb.Common.DB
{
public class BaoguanDataContext : DbContext
{
public BaoguanDataContext() : base("BaoguanDB")
{
}
public BaoguanDataContext(string conn) : base(conn)
{
}
public DbSet<BaoGuanOrder> BaoGuanOrder { get; set; }
public DbSet<BaoguanAliActionList> BaoguanAliActionList { get; set; }
}
[Table("tb_BaoGuanOrderList")]
public class BaoGuanOrder
{
[Key]
public long Id { get; set; }
public Guid Gid { get; set; }
public Guid? AlSActionGid { get; set; }
public string UniqueNumber { get; set; }
public string CustomsNo { get; set; }
public int AliCompanyId { get; set; }
public string DelegateMain { get; set; }
public string TradeName { get; set; }
public Guid CompId { get; set; }
public string CompName { get; set; }
public string ClientName { get; set; }
public string ClientMain { get; set; }
public string ClientEmail { get; set; }
public string IEFlag { get; set; }
public string DeclareCustoms { get; set; }
public string ShipOrderNo { get; set; }
public string ShipOrderNoMain { get; set; }
public string DockStatus { get; set; }
public long ETATime { get; set; }
public long ETDTime { get; set; }
public long CheckTime { get; set; }
public string CustomsMessage { get; set; }
public string CustomersCheck { get; set; }
public string Memo { get; set; }
public string stateCode { get; set; }
public string stateName { get; set; }
public string TrafName { get; set; }
public string FileInfo { get; set; }
public long UpTime { get; set; }
public long AddTime { get; set; }
public short Status { get; set; }
public short ParseStatus { get; set; }
}
[Table("tb_BaoguanAliActionList")]
public class BaoguanAliActionList
{
[Key]
public long Id { get; set; }
public Guid? Gid { get; set; }
public string msgId { get; set; }
public string topic { get; set; }
public string uniqueNumber { get; set; }
public string data { get; set; }
public long AliTime { get; set; }
public string StateCode { get; set; }
public string StateName { get; set; }
public long UpTime { get; set; }
public long AddTime { get; set; }
public short Status { get; set; }
public int companyId { get; set; }
}
}