#1 2017-07-27 02:38:44

JerryC_ph
Member
Registered: 2013-03-11
Posts: 16

Types do not match at DB Level--TRawUTF8DynArray in DDD

TDDDRepositoryRestFactory.ComputeMapping in mORMotDDD is raising an error:

" TInfraRepoPersonFactory types do not match at DB level: TPerson.PhoneNumbers:
TawUTF8DynArray=ftBlob and TSQLRecordPerson.PhoneNumbers:Variant=ftUTF8 ..."


Is there something I missed?

Offline

#2 2017-07-27 10:27:58

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,662
Website

Re: Types do not match at DB Level--TRawUTF8DynArray in DDD

I've enhanced TSQLPropInfo.CopyProp process of variant fields.
See https://synopse.info/fossil/info/416efd9c7d

Now, you should be able to map a TRawUTF8DynArray domain field with a variant record field, stored as JSON.

Offline

Board footer

Powered by FluxBB