using
is OK but how to use it with link? for example:
I got error on domain build: Invalid cast from 'System.Int32' to 'Project3.Model.MyEntity'. or Invalid cast from 'System.String' to 'Project3.Model.MyEntity'. for DefaultValue = "1" I think string default values for referential fields should be converted to Keys, so, if there exists entity with Key 1 - use it. translating to sql should be simple for GUID - if use DefaultValue = "68DBEE55-09A7-48B3-9A47-4E16549B24B6" find linked entity with this key and use it. |
Although it's a bad idea to use Actually, we had no time to implement support of this attribute for reference fields at all - I'm still thinking if this is a good idea, or not. Issue: 793. |