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.
DS7/DSWeb/Areas/SysMng/Models/SYSUSER/User.cs

96 lines
3.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace DSWeb.Areas.SysMng.DB
{
public class UserContext : DbContext
{
public UserContext()
: base("DongShengDB")
{
}
public DbSet<USER> USERS { get; set; }
public DbSet<USER_BASEINFO> USER_BASEINFOS { get; set; }
public DbSet<USER_COMPANY> USER_COMPANYS { 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 bool? ISDELETED { get; set; }
public bool? ISDISABLE { get; set; }
public string NOCODE { get; set; }
public string OPENID { get; set; }
public string WeChatAccount { get; set; }
public string DingTalkAccount { get; set; }
public string ENROLLTIME { get; set; }
public string CREATEUSER { get; set; }
public string MODIFIEDUSER { get; set; }
public string MODIFIEDTIME { get; set; }
public string DELETEUSER { get; set; }
public string DELETETIME { get; set; }
}
[Table("user_baseinfo")]
public class USER_BASEINFO
{
[Key]
public string GID { get; set; }
public string USERID { get; set; }
public string COMPANYNAME { get; set; }
public string DEPTNAME { get; set; }
public string OFFICEPHONE { get; set; }
public string HOMEPHONE { get; set; }
public string MOBILE { get; set; }
public string FAX { get; set; }
public string EMAIL1 { get; set; }
public string EMAIL2 { get; set; }
public string HOMEADDRESS { get; set; }
public string REMARK { get; set; }
public string CREATEUSER { get; set; }
public DateTime? CREATETIME { get; set; }
public string MODIFIEDUSER { get; set; }
public DateTime? MODIFIEDTIME { get; set; }
public string EMERGUSER { get; set; }
public string EMERGPHONE { get; set; }
public string EMERGEMAIL { get; set; }
public string POSTCODE { get; set; }
public string QQ { get; set; }
public string MSN { get; set; }
//public SIGNATURE
public string FINANCESOFTCODE { get; set; }
public string IMAGEURL { get; set; }
public string SIGNATUREURL { get; set; }
public string mailsign { get; set; }
public DateTime? CONTRACTDATE { get; set; }
public string TRIALTIME { get; set; }
public string IDNUM { get; set; }
public string EDURECORD { get; set; }
public string ANNUALLEAVE { get; set; }
}
[Table("user_company")]
public class USER_COMPANY
{
public string GID { get; set; }
public string COMPANYID { get; set; }
public string USERID { get; set; }
}
}