test/Misc/EFTools/TestInfrastructure/ResourcesHelper.cs
/// <summary>
///     Look up resource string in all relevant resource tables for the
///     Microsoft.Data.Entity.Design.dll reference file.
/// </summary>
/// <param name="key">Resource string key</param>
/// <returns>Real display string</returns>
Look up resource string in all relevant resource tables for the
Microsoft.Data.Entity.Design.dll reference file.
Look up resource string in all relevant resource tables for the Microsoft . Data . Entity . Design . dll reference file .
public string GetEntityDesignResourceString(string key)
        {
            foreach (
                var resourceLookup in
                    new[]
                    { _modelWizardResourceLookup, _designPackageResourceLookup, _entityDesignResourceLookup, _viewsDialogsResourceLookup })
            {
                try
                {
                    return GetResourceString(resourceLookup, key);
                }
                catch (ArgumentException)
                {
                }
            }
            return "";
        }
public string GetEntityDesignResourceString ( string key ) { foreach ( var resourceLookup in new [ ] { _modelWizardResourceLookup , _designPackageResourceLookup , _entityDesignResourceLookup , _viewsDialogsResourceLookup } ) { try { return GetResourceString ( resourceLookup , key ) ; } catch ( ArgumentException ) { } } return " " ; }
Look up resource string in all relevant resource tables for the
Microsoft.Data.Entity.Design.dll reference file.
Look up resource string in all relevant resource tables for the Microsoft . Data . Entity . Design . dll reference file .
// In order to check multiple tables with a single function, we have to handle // this exception (meaning the key wasn't found in the table) between checks
Real display string
Real display string
key
string
Resource string key
Resource string key