Entity CodeFirst EF6, EntityData String ID

We started using Entity Code First with Azure Mobile Services and ran into some problem:

To use TableController with Entity objects, I need to derive each of them from the EntityData class, which provide a row identifier field!

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

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

+3
source share
2 answers

EntityData - , Dtos, , , .

, , , ... , "CarDto", dto "carDto.Id", EntityData, "carDto.CarId" ! , , , , , , AutoMapper dto:)

. Azure Mobile Services - , Azure Mobile Services, , dtos .

SQL Mobile Services.NET, , , .... , :)

+2

Source: https://habr.com/ru/post/1655062/


All Articles