ADO.NET Entity Framework: Create an Object Using the Static Create Method (C#)?

Identity parameters are auto-generated - you shouldn't need to specify the value yourself.

Here's another option: Cliente cliente = new Cliente { Email = datosCliente. Email, Password = datosCliente. Password }.

If you really want a undefined id which is not 0, such as -1, you could implement the default constructor for your entity and set it there.

No, you don't ever need to set the Id. Remove the parameter from the factory method and leave the Id value as the default (zero in this case I imagine).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions