using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; using System.Linq; using System.Web; namespace ForwarderQuery.DB { public class MyshippingData : DbContext { public MyshippingData() : base("DongShengDB") { } public DbSet Users { get; set; } public DbSet CustAuth { get; set; } public DbSet EdiQueryLog { get; set; } } [Table("user")] public class User { [Key] public string GID { get; set; } public string USERNAME { get; set; } public string CODENAME { get; set; } public string PASSWORD { get; set; } public string SHOWNAME { get; set; } public DateTime? ENROLLTIME { get; set; } public string CREATEUSER { get; set; } public string MODIFIEDUSER { get; set; } public DateTime? MODIFIEDTIME { get; set; } public bool? ISDELETED { get; set; } public bool? ISDISABLE { get; set; } public string DELETEUSER { get; set; } public DateTime? DELETETIME { get; set; } public string NOCODE { get; set; } public string OPENID { get; set; } public string WeChatAccount { get; set; } public string FaSongFangDaiMa { get; set; } public string ptPhone { get; set; } public string ptEmail { get; set; } public string comid { get; set; } public bool isAllowGenerate { get; set; } public bool isAllowSend { get; set; } public string COMNAME { get; set; } public string YAOQINGMA { get; set; } public string cscode { get; set; } public string COMTYPE { get; set; } //用户绑定公司的ID,认证后或加入公司后,置值所属公司的ID public string CompId { get; set; } } [Table("CUST_AUTH")] public class CustAuth { [Key] public string GID { get; set; } public string USERID { get; set; } public string SKEY { get; set; } public int? BSTYPE { get; set; } public DateTime CREATETIME { get; set; } public string username { get; set; } public string comname { get; set; } } [Table("edi_query_log")] public class EdiQueryLog { [Key] public string GID { get; set; } public string USERID { get; set; } public string COMNAME { get; set; } public string MBLNO { get; set; } public string VESSEL { get; set; } public string VOYNO { get; set; } public DateTime LOGTIME { get; set; } public string RESULT { get; set; } } }