0

I am doing an InserAsync and the SQL query returns the generated Id but the entity has zero for its integer identity column.

Why is it not updating the identity column? It works when it's Insert but not when it's InsertAsync. Such is life...

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
  • Please also share a simplified source code that presents how you config your entity in FastCRUD. – Fred Dec 31 '19 at 15:54

1 Answers1

0

I used Insert without Async and returned Task.FromResult(0); from the method.

Boom, that will learn 'em.

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189