I want to know that If my code is
Entity account=new Entity("account");
Guid gid=account.id;
what happen if I am not used guid .what the 2 line meanining and why it is decalare when we define entity.
I want to know that If my code is
Entity account=new Entity("account");
Guid gid=account.id;
what happen if I am not used guid .what the 2 line meanining and why it is decalare when we define entity.
Hi,
If you are not using a guid in the declaration, you will receive an error on compile time, that you cannot convert the type "System.Guid" to the type that you will use.
Hello Khan,
Please test the code I provided, I think it should work without the guid.
Regards,
My question is what error will come if I am not using guide declaration.
Hello Khan,
This is because the system "helps" developers to write less code, for example:
Entity newAccount = new Entity("account");
newAccount["name"] = "TEST";
service.Create(newAccount);
this should work.
Regards!
Holly Huffman
103
Muhammad Shahzad Sh...
96
Most Valuable Professional
Gerardo RenterÃa Ga...
51
Most Valuable Professional