再会。我为对象创建了一些存储库并尝试更新相同的对象。我使用了“ExecuteStoreCommand”和下一个方法
public void UpdatePatienAccount(long modelId, long patientId, long accountId)
{
//ExecuteStoreCommand(@"UPDATE PATIENT_ACCOUNT SET PATIENT_ID = :1 AND ACCOUNT_ID = :2 WHERE ID == :3", patientId, accountId, modelId);
ExecuteStoreCommand(String.Format("UPDATE PATIENT_ACCOUNT SET PATIENT_ID = {0} AND ACCOUNT_ID = {1} WHERE ID = {2};", patientId, accountId, modelId));
}
并产生下一个异常:
"ORA-00933: SQL command not properly ended"
PS 被调用方法的参数不为零(不为空且不为非空的对象)。