I wrote this:
using (GuiaMovilEntities guiaEntity = new GuiaMovilEntities()) { try { Cliente cliente = Cliente.CreateCliente(-1, datosCliente.Email, datosCliente.Password); } catch { } }
It’s unfinished.
If table Cliente (represented by Cliente object) has its first row (clienteID) as IDENTITY column.
Is it correct to put -1 as clienteID value?
Thanks!
Identity parameters are auto-generated – you shouldn’t need to specify the value yourself.