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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

數(shù)據(jù)庫(kù)插不進(jìn)數(shù)據(jù)

初始化服務(wù)器那里顯示下面的警告,在初始化方法那里把price做了顯示類型轉(zhuǎn)換也不行還是顯示警告,把noodle類的price類型改成int之后,警告倒是沒(méi)有了,但還是插不進(jìn)數(shù)據(jù)

warn: Microsoft.EntityFrameworkCore.Model.Validation[30000]

? ? ? No type was specified for the decimal column 'Price' on entity type 'Noodle'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values using 'ForHasColumnType()'.


正在回答

1 回答

問(wèn)題解決了,這個(gè)警告是個(gè)小問(wèn)題,https://mattferderer.com/entity-framework-no-type-was-specified-for-the-decimal-column,這里有解決方法,

原來(lái)是我的main里面調(diào)用的是Seed(),然后初始化器里面寫的seed(),然后不知道什么時(shí)候vs給我創(chuàng)建了一個(gè)空Seed(),然后一直調(diào)用的是空Seed(),真的是陰差陽(yáng)錯(cuò),頭疼啊

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

數(shù)據(jù)庫(kù)插不進(jìn)數(shù)據(jù)

我要回答 關(guān)注問(wèn)題
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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