我正在使用EF开发一个布茨or网络,每当我管理该方案时,它就在产出小组上说:
Microsoft.EntityFrameworkCore.Database.Command: 错误:未执行DbCommand (53ms) [项目参数=[]、指挥系统=文本、指挥时间=30] SlectT [t]. [ID]、[t].[AMOUNT]、[t].[CREATED_DATE]、[t]. [DOCUMENT_NUM]、[t]. [PARTICULA]、[t]. [USERID]、[t]. [USER_ID]
Microsoft.Data.SqlClient.SqlException (0x80131904): Invalidcol name USERID
在我的《示范公约》中:
public class TransactionModel {
public int ID { get; set; }
public string? DOCUMENT_NUM { get; set; }
public DateTime CREATED_DATE { get; set; }
public string? USER_ID { get; set; }
public EmployeeModel? USER { get; set; }
public string? PARTICULARS { get; set; }
public decimal AMOUNT { get; set; } }
I don t have a column named USERID
and yet for some reason, EF Database Command selects a USERID
能否手工改变欧洲复兴开发银行数据库的指挥? 还是有办法解决这一问题?