I found the following in DADBSpecific
internal class PersistenceInfoProviderCore : PersistenceInfoProviderBase
{
/// <summary>Initializes a new instance of the <see cref="PersistenceInfoProviderCore"/> class.</summary>
internal PersistenceInfoProviderCore()
{
Init();
}
/// <summary>Method which initializes the internal datastores with the structure of hierarchical types.</summary>
private void Init()
{
base.InitClass((1 + 0));
InitUidictionaryEntityMappings();
}
/// <summary>Inits UidictionaryEntity's mappings</summary>
private void InitUidictionaryEntityMappings()
{
base.AddElementMapping( "UidictionaryEntity", "winUI", @"Default", "UIDictionary", 3 );
base.AddElementFieldMapping( "UidictionaryEntity", "SourceFormName1", "SourceFormName", false, (int)OleDbType.VarWChar, 75, 0, 0, false, "", null, typeof(System.String), 0 );
base.AddElementFieldMapping( "UidictionaryEntity", "EntityName1", "EntityName", false, (int)OleDbType.VarWChar, 75, 0, 0, false, "", null, typeof(System.String), 1 );
base.AddElementFieldMapping( "UidictionaryEntity", "TargetFormName1", "TargetFormName", true, (int)OleDbType.VarWChar, 75, 0, 0, false, "", null, typeof(System.String), 2 );
}
}
In the LLBL project file I changed the property name of the field sourceFormName to sourceFormName1 so to track where to find the mapping
Is it true to assume that in the following code:
base.AddElementFieldMapping( "UidictionaryEntity", "SourceFormName1", "SourceFormName", false, (int)OleDbType.VarWChar, 75, 0, 0, false, "", null, typeof(System.String), 0 );
"SourceFormName1" is the entity field's property name and "SourceFormName" is the name of the DB table field mapped on that entity field?
If that is truly the case, how can I obtain this info? If I try the following
var x = FieldInfoProviderSingleton.GetInstance().GetFieldInfo("UidictionaryEntity", (int)fieldIndex);
(where field index is the index of the field I need) and inspect the properties of x, which property will give me "SourceFormName" instead of "SourceFormName1" ??