Closed jogibear9988 closed 8 years ago
I've the following Code:
MappingSchema.Default.SetConverter<SerializableDictionary<string, SerializableDictionary<string, string>>, string>((obj) => { if (obj == null) return null; return StringSerializer.JsonNetSerialize(obj); }); MappingSchema.Default.SetConverter<string, SerializableDictionary<string, SerializableDictionary<string, string>>>((txt) => { if (txt == null) return null; return StringSerializer.JsonNetDeSerialize<SerializableDictionary<string, SerializableDictionary<string, string>>>(txt); });
And I have the following Property in my Entity:
[DataMember] [Browsable(false)] public virtual SerializableDictionary<string, SerializableDictionary<string, string>> ScriptAssignment { get; set; }
when I now Save via:
DataConnection.Insert(obj)
my Converter is not used on the insert, and "MCC.Utilities.SerializableDictionary2[System.String,MCC.Utilities.SerializableDictionary2[System.String,System.String]]" is written to the DB! But when I read, it used the Converter
2[System.String,MCC.Utilities.SerializableDictionary
Sorry wrong Repo
I've the following Code:
And I have the following Property in my Entity:
when I now Save via:
my Converter is not used on the insert, and "MCC.Utilities.SerializableDictionary
2[System.String,MCC.Utilities.SerializableDictionary
2[System.String,System.String]]" is written to the DB! But when I read, it used the Converter