TG.WXCRM.V4/Model/EntityYun/yunContext.cs

371 lines
12 KiB
C#

namespace WX.CRM.Model.EntityYun
{
using System.Data.Entity;
public partial class yunContext : DbContext
{
public yunContext()
: base(ConStringHelper.GetDbConnection(ConStringHelper.YunCrmConn, ConStringHelper.DatabaseTypeNum.ORACLE), true)
//: base("name=yunContext")
{
}
public virtual DbSet<WX_ALIVE> WX_ALIVE { get; set; }
public virtual DbSet<WX_FRIENDSRELATION> WX_FRIENDSRELATION { get; set; }
public virtual DbSet<WX_FRIENDSRELATIONADD> WX_FRIENDSRELATIONADD { get; set; }
public virtual DbSet<WX_RCONTACT> WX_RCONTACT { get; set; }
public virtual DbSet<WX_WORKACCOUNT> WX_WORKACCOUNT { get; set; }
public virtual DbSet<WX_WORKACCOUNT_NOTE> WX_WORKACCOUNT_NOTE { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<WX_ALIVE>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_ALIVE>()
.Property(e => e.VERSION)
.IsUnicode(false);
modelBuilder.Entity<WX_ALIVE>()
.Property(e => e.UIN)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.PKID)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.JOBUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.MSGSVRID)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.TYPE)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.ISWORKACOUNT)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATION>()
.Property(e => e.ISINNERUSER)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.PKID)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.JOBUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.MSGSVRID)
.IsUnicode(false);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.TYPE)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.ISWORKACOUNT)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_FRIENDSRELATIONADD>()
.Property(e => e.ISINNERUSER)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.JOBWXUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.ALIAS)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.CONREMARK)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.DOMAINLIST)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.NICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.PYINITIAL)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.QUANPIN)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.SHOWHEAD)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.TYPE)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.WEIBOFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.WEIBONICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.CONREMARKPYFULL)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.CONREMARKPYSHORT)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.LVBUFF)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.VERFYFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.ENCRYPTUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.CHATROOMFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.DELETEFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.CONTACTLABELIDS)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.RESOURCETAG)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.RESID)
.IsUnicode(false);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.ISTOBEADDFRIENDS)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_RCONTACT>()
.Property(e => e.LASTCHATTIME)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.ALIAS)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.CONREMARK)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.DOMAINLIST)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.NICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.PYINITIAL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.QUANPIN)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.SHOWHEAD)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.TYPE)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.WEIBOFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.WEIBONICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.CONREMARKPYFULL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.CONREMARKPYSHORT)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.LVBUFF)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.VERFYFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.ENCRYPTUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.CHATROOMFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.DELETEFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.CONTACTLABELIDS)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.RESID)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.QRCODEURL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.INNERUSERID)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.ISVALID)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT>()
.Property(e => e.QUANTITY)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.USERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.ALIAS)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.CONREMARK)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.DOMAINLIST)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.NICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.PYINITIAL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.QUANPIN)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.SHOWHEAD)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.TYPE)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.WEIBOFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.WEIBONICKNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.CONREMARKPYFULL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.CONREMARKPYSHORT)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.LVBUFF)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.VERFYFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.ENCRYPTUSERNAME)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.CHATROOMFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.DELETEFLAG)
.HasPrecision(38, 0);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.CONTACTLABELIDS)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.RESID)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.QRCODEURL)
.IsUnicode(false);
modelBuilder.Entity<WX_WORKACCOUNT_NOTE>()
.Property(e => e.INNERUSERID)
.HasPrecision(38, 0);
}
}
}