@@ -82,6 +82,7 @@ private string CreateEntity()
8282 }
8383
8484 entityContent = entityContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
85+ entityContent = entityContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
8586
8687 WriteConfig ( entityPath , entityContent ) ;
8788
@@ -100,6 +101,7 @@ private string CreateIRepository()
100101 var iRepositoryContent = Templates . IRepository . TemplateCode . Replace ( "$_CONTRACTS_$" , domainContract ) ;
101102 iRepositoryContent = iRepositoryContent . Replace ( "$_NAMESPACE_$" , nameSpace + ".Interfaces.Repositories" ) ;
102103 iRepositoryContent = iRepositoryContent . Replace ( "$_MODEL_$" , entityName . Text ) ;
104+ iRepositoryContent = iRepositoryContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
103105
104106 WriteConfig ( iRepositoryPath , iRepositoryContent ) ;
105107
@@ -120,6 +122,7 @@ private string CreateRepository(string nameSpaceInterface, string nameSpaceEntit
120122 repositoryContent = repositoryContent . Replace ( "$_ENTITY_NAMESPACE_$" , nameSpaceEntity ) ;
121123 repositoryContent = repositoryContent . Replace ( "$_NAMESPACE_$" , repositoryNamespace ) ;
122124 repositoryContent = repositoryContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
125+ repositoryContent = repositoryContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
123126
124127 WriteConfig ( repositoryPath , repositoryContent ) ;
125128
@@ -157,6 +160,7 @@ private string CreateAddEditCQRS(string iRepositoryNamespace, string entityNames
157160 addEditCQRSContent = addEditCQRSContent . Replace ( "$_NAMESPACE_$" , addEditCQRSNamespace ) ;
158161 addEditCQRSContent = addEditCQRSContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
159162 addEditCQRSContent = addEditCQRSContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
163+ addEditCQRSContent = addEditCQRSContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
160164
161165 WriteConfig ( addEditCQRSPath , addEditCQRSContent ) ;
162166
@@ -194,6 +198,7 @@ private string CreateDeleteCQRS(string iRepositoryNamespace, string entityNamesp
194198 deleteCQRSContent = deleteCQRSContent . Replace ( "$_NAMESPACE_$" , deleteCQRSNamespace ) ;
195199 deleteCQRSContent = deleteCQRSContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
196200 deleteCQRSContent = deleteCQRSContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
201+ deleteCQRSContent = deleteCQRSContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
197202
198203 WriteConfig ( deleteCQRSPath , deleteCQRSContent ) ;
199204
@@ -224,6 +229,7 @@ private string CreateSpecification(string entityNamespace)
224229 specificationContent = specificationContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
225230 specificationContent = specificationContent . Replace ( "$_NAMESPACE_$" , specificationNamespace ) ;
226231 specificationContent = specificationContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
232+ specificationContent = specificationContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
227233
228234 WriteConfig ( specificationPath , specificationContent ) ;
229235
@@ -245,6 +251,7 @@ private string CreateMappingProfile(string entityNamespace, string addEditCQRSNa
245251 mappingProfileContent = mappingProfileContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
246252 mappingProfileContent = mappingProfileContent . Replace ( "$_NAMESPACE_$" , mappingProfileNamespace ) ;
247253 mappingProfileContent = mappingProfileContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
254+ mappingProfileContent = mappingProfileContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
248255
249256
250257 WriteConfig ( mappingProfilePath , mappingProfileContent ) ;
@@ -286,6 +293,7 @@ private string CreateGetAllPagedQuery(string iRepositoryNamespace, string entity
286293 getAllPagedQueryContent = getAllPagedQueryContent . Replace ( "$_NAMESPACE_$" , getAllPagedQueryNamespace ) ;
287294 getAllPagedQueryContent = getAllPagedQueryContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
288295 getAllPagedQueryContent = getAllPagedQueryContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
296+ getAllPagedQueryContent = getAllPagedQueryContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
289297
290298 WriteConfig ( getAllPagedQueryPath , getAllPagedQueryContent ) ;
291299
@@ -327,6 +335,7 @@ private string CreateGetAllPagedResponse(string iRepositoryNamespace, string ent
327335 var getAllPagedResponseContent = Templates . GetAllPagedResponse . TemplateCode . Replace ( "$_ENUM_NAMESPACE_$" , enumNamespace ) ;
328336 getAllPagedResponseContent = getAllPagedResponseContent . Replace ( "$_NAMESPACE_$" , getAllPagedResponseNamespace ) ;
329337 getAllPagedResponseContent = getAllPagedResponseContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
338+ getAllPagedResponseContent = getAllPagedResponseContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
330339
331340 WriteConfig ( getAllPagedResponsePath , getAllPagedResponseContent ) ;
332341
@@ -368,6 +377,7 @@ private string CreateGetModelByIdQuery(string iRepositoryNamespace, string entit
368377 getModelByIdQueryContent = getModelByIdQueryContent . Replace ( "$_ENTITY_NAMESPACE_$" , entityNamespace ) ;
369378 getModelByIdQueryContent = getModelByIdQueryContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
370379 getModelByIdQueryContent = getModelByIdQueryContent . Replace ( "$_ENTITY_LOWER_$" , entityName . Text . ToLower ( ) ) ;
380+ getModelByIdQueryContent = getModelByIdQueryContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
371381
372382 WriteConfig ( getModelByIdQueryPath , getModelByIdQueryContent ) ;
373383
@@ -409,6 +419,7 @@ private string CreateGetModelByIdResponse(string iRepositoryNamespace, string en
409419 var getModelByIdResponseContent = Templates . GetModelByIdResponse . TemplateCode . Replace ( "$_ENUM_NAMESPACE_$" , enumNamespace ) ;
410420 getModelByIdResponseContent = getModelByIdResponseContent . Replace ( "$_NAMESPACE_$" , getAllPagedResponseNamespace ) ;
411421 getModelByIdResponseContent = getModelByIdResponseContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
422+ getModelByIdResponseContent = getModelByIdResponseContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
412423
413424 WriteConfig ( getAllPagedResponsePath , getModelByIdResponseContent ) ;
414425
@@ -448,6 +459,7 @@ private string CreateController(string addEditCQRS, string deleteCQRS, string ge
448459 controllerContent = controllerContent . Replace ( "$_NAMESPACE_$" , controllerNamespace ) ;
449460 controllerContent = controllerContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
450461 controllerContent = controllerContent . Replace ( "$_SERVER_CONTROLLER_NAMESPACE_$" , serverControllersNamespace ) ;
462+ controllerContent = controllerContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
451463
452464 WriteConfig ( controllerPath , controllerContent ) ;
453465
@@ -466,6 +478,7 @@ private string CreateRoute()
466478 var routeContent = Templates . Route . TemplateCode . Replace ( "$_NAMESPACE_$" , routeNamespace ) ;
467479 routeContent = routeContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
468480 routeContent = routeContent . Replace ( "$_ENTITY_LOWER_$" , entityName . Text . ToLower ( ) ) ;
481+ routeContent = routeContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
469482
470483 WriteConfig ( routePath , routeContent ) ;
471484
@@ -495,6 +508,7 @@ private string CreateRequest()
495508
496509 var requestContent = Templates . Request . TemplateCode . Replace ( "$_NAMESPACE_$" , requestNamespace ) ;
497510 requestContent = requestContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
511+ requestContent = requestContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
498512
499513 WriteConfig ( requestPath , requestContent ) ;
500514
@@ -540,6 +554,7 @@ private string CreateManager(string addEditCQRS, string getAllPagedCQRS, string
540554 iManagerContent = iManagerContent . Replace ( "$_SHARED_WRAPPER_NAMESPACE_$" , sharedWrapperNamespace ) ;
541555 iManagerContent = iManagerContent . Replace ( "$_NAMESPACE_$" , managerNamespace ) ;
542556 iManagerContent = iManagerContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
557+ iManagerContent = iManagerContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
543558
544559 var managerContent = Templates . IEntityManager . TemplateCode2 . Replace ( "$_ADD_EDIT_CQRS_NAMESPACE_$" , addEditCQRS ) ;
545560 managerContent = managerContent . Replace ( "$_GET_ALL_PAGED_CQRS_NAMESPACE_$" , getAllPagedCQRS ) ;
@@ -549,6 +564,7 @@ private string CreateManager(string addEditCQRS, string getAllPagedCQRS, string
549564 managerContent = managerContent . Replace ( "$_CLIENT_INFRA_EXTENSION_NAMESPACE_$" , clientInfraExtensionNamespace ) ;
550565 managerContent = managerContent . Replace ( "$_NAMESPACE_$" , managerNamespace ) ;
551566 managerContent = managerContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
567+ managerContent = managerContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
552568
553569 WriteConfig ( iManagerPath , iManagerContent ) ;
554570 WriteConfig ( managerPath , managerContent ) ;
@@ -601,6 +617,7 @@ private string CreateUI(string addEditCQRS, string getAllPagedCQRS, string reque
601617 var uiListRazorContent = Templates . UITemplate . ListRazor . Replace ( "$_PAGE_PATH_$" , pagePath ) ;
602618 uiListRazorContent = uiListRazorContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
603619 uiListRazorContent = uiListRazorContent . Replace ( "$_GET_ALL_PAGED_NAMESPACE_$" , getAllPagedCQRS ) ;
620+ uiListRazorContent = uiListRazorContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
604621
605622 var uiListCsContent = Templates . UITemplate . ListCS . Replace ( "$_GET_ALL_PAGED_CQRS_NAMESPACE_$" , getAllPagedCQRS ) ;
606623 uiListCsContent = uiListCsContent . Replace ( "$_REQUEST_NAMESPACE_$" , request ) ;
@@ -612,9 +629,11 @@ private string CreateUI(string addEditCQRS, string getAllPagedCQRS, string reque
612629 uiListCsContent = uiListCsContent . Replace ( "$_NAMESPACE_$" , uiNamespace ) ;
613630 uiListCsContent = uiListCsContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
614631 uiListCsContent = uiListCsContent . Replace ( "$_ENTITY_LOWER_$" , lowerEntityName ) ;
632+ uiListCsContent = uiListCsContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
615633
616634 var uiModalRazorContent = Templates . UITemplate . AddEditModalRazor . Replace ( "$_PAGE_PATH_$" , pagePath ) ;
617635 uiModalRazorContent = uiModalRazorContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
636+ uiModalRazorContent = uiModalRazorContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
618637
619638 var uiModalCsContent = Templates . UITemplate . AddEditModalCS . Replace ( "$_GET_ALL_PAGED_CQRS_NAMESPACE_$" , getAllPagedCQRS ) ;
620639 uiModalCsContent = uiModalCsContent . Replace ( "$_REQUEST_NAMESPACE_$" , request ) ;
@@ -626,6 +645,7 @@ private string CreateUI(string addEditCQRS, string getAllPagedCQRS, string reque
626645 uiModalCsContent = uiModalCsContent . Replace ( "$_NAMESPACE_$" , uiNamespace ) ;
627646 uiModalCsContent = uiModalCsContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
628647 uiModalCsContent = uiModalCsContent . Replace ( "$_ENTITY_LOWER_$" , lowerEntityName ) ;
648+ uiModalCsContent = uiModalCsContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
629649
630650 WriteConfig ( uiListRazor , uiListRazorContent ) ;
631651 WriteConfig ( uiListCs , uiListCsContent ) ;
@@ -664,6 +684,7 @@ private string CreateValidator(string addEditCQRS)
664684 var validatorContent = Templates . Validation . TemplateCode . Replace ( "$_NAMESPACE_$" , validatorNamespace ) ;
665685 validatorContent = validatorContent . Replace ( "$_ENTITY_$" , entityName . Text ) ;
666686 validatorContent = validatorContent . Replace ( "$_ADD_EDIT_CQRS_NAMESPACE_$" , addEditCQRS ) ;
687+ validatorContent = validatorContent . Replace ( "$_DEFAULT_ID_DATATYPE_$" , defaultDatatype . Text ) ;
667688
668689 WriteConfig ( validatorPath , validatorContent ) ;
669690
0 commit comments