Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity CodeFirst EF6, EntityData string id

Have started to use Entity Code First with Azure Mobile Services and have met some issue:

For using TableController with Entity objects I need to derive each of them from EntityData class, that provide string Id field!

I used to use int, long and even guid instead string for id, so...

What is benefits of this? What about insert operation and what is the best practice for this? What about performance for string id?

like image 949
BotanMan Avatar asked Mar 04 '26 11:03

BotanMan


1 Answers

@carlosfigueira has a good writeup about the change to using string id here: http://blogs.msdn.com/b/carlosfigueira/archive/2013/11/23/new-tables-in-azure-mobile-services-string-id-system-properties-and-optimistic-concurrency.aspx

like image 109
brettsam Avatar answered Mar 06 '26 01:03

brettsam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!