c# - Asp.Net MVC 4 view model and domain model ids -


our system runs on multiple servers. tables in our system uses guid primary key , foreign key fields. our old system , it going through brand new rewrite.

the motivation use guid in old system migration of data. reasonable migrate items 1 server another. using int ids problematic when data gets migrated across.

now new system want use guid ids due migration factor. new system written using ddd mvc 4. using kendoui ui controls.

kendoui looks of things not support guid int grids foreign keys. column blank when used.

someone mentioned design wrong , should not use guid id. wrong use guid in view model? difficult use guid in domain model , intin view model.

what better datatype use in system ids important across multiple servers in case of migration.

or migration of data separate issue should using api's , domain services migrate data over, in case using int id reasonable.

can point me right direction please?

you're right wanting use guids ids. if ui tools not support guid ids, use tool. i'd using vendor-specific ui tools counter spirit of asp.net mvc anyway. should able find free , open source need.

under no circumstances should mapping guid ids int ids sake of ui controls. lead massive pain.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -