Source/NFX/DataAccess/CRUD/Schema.cs
//20170420 DKh+Ogee multitargeting for deserilization to ROW from JSON
/// <summary>
/// Returns a field def that matches the desired backed name for the specified target or null
/// </summary>
/// <param name="targetName">Target or null, if null any target assumed</param>
/// <param name="backendName">The name of the backend</param>
/// <param name="backendNameComparison">The string comparison to use against the backend name, OrdinalIgnoreCase is dflt</param>
/// <returns>The desired field or null</returns>
Returns a field def that matches the desired backed name for the specified target or null
Returns a field def that matches the desired backed name for the specified target or null
public FieldDef TryFindFieldByTargetedBackendName(
                                                      string targetName,
                                                      string backendName,
                                                      StringComparison backendNameComparison = StringComparison.OrdinalIgnoreCase)
            {
                 return m_FieldDefs.FirstOrDefault(  fd => fd.GetBackendNameForTarget(targetName).Equals(backendName, backendNameComparison)  );
            }
public FieldDef TryFindFieldByTargetedBackendName ( string targetName , string backendName , StringComparison backendNameComparison = StringComparison . OrdinalIgnoreCase ) { return m_FieldDefs . FirstOrDefault ( fd => fd . GetBackendNameForTarget ( targetName ) . Equals ( backendName , backendNameComparison ) ) ; }
Returns a field def that matches the desired backed name for the specified target or null
Returns a field def that matches the desired backed name for the specified target or null
The desired field or null
The desired field or null
targetName
string
Target or null, if null any target assumed
Target or null if null any target assumed
backendName
string
The name of the backend
The name of the backend
backendNameComparison
StringComparison
The string comparison to use against the backend name, OrdinalIgnoreCase is dflt
The string comparison to use against the backend name OrdinalIgnoreCase is dflt