src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Find enum type in the model.
/// </summary>
Find enum type in the model.
Find enum type in the model .
internal static EnumType FindEnumType(ConceptualEntityModel cModel, string name)
        {
            Debug.Assert(cModel != null, "Null ConceptualEntityModel");
            foreach (var et in cModel.EnumTypes())
            {
                if (String.Equals(name, et.LocalName.Value, StringComparison.OrdinalIgnoreCase)
                    || String.Equals(name, et.NormalizedNameExternal, StringComparison.OrdinalIgnoreCase))
                {
                    return et;
                }
            }
            return null;
        }
internal static EnumType FindEnumType ( ConceptualEntityModel cModel , string name ) { Debug . Assert ( cModel != null , " " ) ; foreach ( var et in cModel . EnumTypes ( ) ) { if ( String . Equals ( name , et . LocalName . Value , StringComparison . OrdinalIgnoreCase ) || String . Equals ( name , et . NormalizedNameExternal , StringComparison . OrdinalIgnoreCase ) ) { return et ; } } return null ; }
Find enum type in the model.
Find enum type in the model .
cModel
ConceptualEntityModel
name
string