src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Find complex-type in the model.
/// </summary>
Find complex-type in the model.
Find complex - type in the model .
internal static ComplexType FindComplexType(ConceptualEntityModel cModel, string name)
        {
            Debug.Assert(cModel != null, "Null ConceptualEntityModel");
            foreach (var ct in cModel.ComplexTypes())
            {
                if (String.Compare(name, ct.LocalName.Value, StringComparison.OrdinalIgnoreCase) == 0
                    || String.Compare(name, ct.NormalizedNameExternal, StringComparison.OrdinalIgnoreCase) == 0)
                {
                    return ct;
                }
            }
            return null;
        }
internal static ComplexType FindComplexType ( ConceptualEntityModel cModel , string name ) { Debug . Assert ( cModel != null , " " ) ; foreach ( var ct in cModel . ComplexTypes ( ) ) { if ( String . Compare ( name , ct . LocalName . Value , StringComparison . OrdinalIgnoreCase ) == 0 || String . Compare ( name , ct . NormalizedNameExternal , StringComparison . OrdinalIgnoreCase ) == 0 ) { return ct ; } } return null ; }
Find complex-type in the model.
Find complex - type in the model .
cModel
ConceptualEntityModel
name
string