Hi,
I have an entity downloaded from the database. I change a property value, and use the adapter.SaveEntity(MyEntity), that succeds.
When the downloaded entity has parent entity, I get an ORMQueryExcecution error:
Message
"An exception was caught during the execution of an action query: Line 1: Incorrect syntax near ')'".
StackTrace
"at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at SD.LLBLGen.Pro.ORMSupportClasses.ActionQuery.Execute()"
QueryExecuted
"Query:
INSERT INTO [order].[dbo].[project] () VALUES ();SELECT @Id=SCOPE_IDENTITY()
Parameters:
@Id : Int32. Direction: Output.
I think on should generate an update query.
Thanks
Gabor