EFCore 8.0 SaveChangesAsync Faild

zmsoft 240 Reputation points
2024-10-21T12:52:42.1766667+00:00

Hi there,

Why EFCore 8.0 SaveChangesAsync always faild?

Env : Azure Functions , EFCore 8.0.10

The error msg is :

An exception occurred in the database while saving changes for context type 'FunctionApp1.Context.DWDbContext'.

Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.

---> Microsoft.Data.SqlClient.SqlException (0x80131904): Parse error at line: 4, column: 18: Incorrect syntax near ','.

But when I succeeded in adding one record, I failed to add more. Any suggestions?

My Code:

[Function("Function1")]

public async Task
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
768 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,254 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.