第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

值不能為null,參數(shù)名稱:seqOwner

值不能為null,參數(shù)名稱:seqOwner

C#
回首憶惘然 2021-04-30 14:37:29
對(duì)于一個(gè)項(xiàng)目,我正在嘗試使用身份作為身份驗(yàn)證服務(wù)。為此,我正在嘗試將該實(shí)體映射到現(xiàn)有數(shù)據(jù)庫(kù)。我認(rèn)為這部分已經(jīng)完成并且現(xiàn)在可以正常工作,但是當(dāng)我嘗試登錄時(shí),會(huì)拋出錯(cuò)誤,并且我不知道如何解決。就是說seqOwner不能為null,我不明白為什么Oracle試圖創(chuàng)建序列。這是我的IdentityModel.csprotected override void OnModelCreating(DbModelBuilder modelBuilder)        {            base.OnModelCreating(modelBuilder);            modelBuilder.HasDefaultSchema("SCHEMA1");            modelBuilder.Entity<ApplicationUser>().ToTable("SCHEMA1.PERSONNELS", "SCHEMA1$USER");            modelBuilder.Entity<ApplicationUser>().Property(p => p.UserName).HasColumnName("PE_USERNAME");            modelBuilder.Entity<ApplicationUser>().Property(p => p.PasswordHash).HasColumnName("PE_MDPEXTRA").IsOptional();            modelBuilder.Entity<ApplicationUser>().Property(p => p.Email).HasColumnName("PE_MAIL");            modelBuilder.Entity<ApplicationUser>().Property(p => p.Id).HasColumnName("PE_ID");            modelBuilder.Entity<ApplicationUser>().Ignore(c => c.AccessFailedCount)                                                   .Ignore(c => c.LockoutEnabled)                                                   .Ignore(c => c.LockoutEndDateUtc)                                                   .Ignore(c => c.EmailConfirmed)                                                   .Ignore(c => c.SecurityStamp)                                                   .Ignore(c => c.TwoFactorEnabled)                                                   .Ignore(c => c.PhoneNumberConfirmed)                                                   .Ignore(c => c.PhoneNumber);        }這是連接字符串,可以正常工作,我可以看到表格和序列<add name="IdentityContext" connectionString="DATA SOURCE=gesmardev.world;PASSWORD=gesmar;PERSIST SECURITY INFO=True;USER ID=&quot;GESMAR$USER&quot;" providerName="Oracle.ManagedDataAccess.Client" />
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 191 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)