Source/NFX/DataAccess/CRUD/Schema.cs
/// <summary>
/// Returns a TableAttribute that matches the supplied targetName, or if one was not defined then
///  returns TableAttribute which matches any target or null
/// </summary>
Returns a TableAttribute that matches the supplied targetName, or if one was not defined then
returns TableAttribute which matches any target or null
Returns a TableAttribute that matches the supplied targetName or if one was not defined then returns TableAttribute which matches any target or null
public TableAttribute GetTableAttrForTarget(string targetName)
            {
                if (targetName.IsNotNullOrWhiteSpace())
                {
                    var atr = m_TableAttrs.FirstOrDefault(a => targetName.EqualsIgnoreCase(a.TargetName));
                    if (atr!=null) return atr;
                }
                return m_TableAttrs.FirstOrDefault(a => TargetedAttribute.ANY_TARGET.EqualsIgnoreCase(a.TargetName));
            }
public TableAttribute GetTableAttrForTarget ( string targetName ) { if ( targetName . IsNotNullOrWhiteSpace ( ) ) { var atr = m_TableAttrs . FirstOrDefault ( a => targetName . EqualsIgnoreCase ( a . TargetName ) ) ; if ( atr != null ) return atr ; } return m_TableAttrs . FirstOrDefault ( a => TargetedAttribute . ANY_TARGET . EqualsIgnoreCase ( a . TargetName ) ) ; }
Returns a TableAttribute that matches the supplied targetName, or if one was not defined then
returns TableAttribute which matches any target or null
Returns a TableAttribute that matches the supplied targetName or if one was not defined then returns TableAttribute which matches any target or null
targetName
string