src/Misc/EFTools/EntityDesign/UI/Views/MappingDetails/MappingDetailsWindow.cs
// <summary>
//     Calls a validation method to check if this association's MSL is editable by the designer
// </summary>
Calls a validation method to check if this association's MSL is editable by the designer
Calls a validation method to check if this association ' s MSL is editable by the designer
private bool CanEditMappingsForFunctionImport(FunctionImport fi)
        {
            var errorMessage = string.Empty;
            if (EdmFeatureManager.GetFunctionImportMappingFeatureState(fi.Artifact.SchemaVersion).IsEnabled() == false)
            {
                SetWatermarkInfo(Resources.MappingDetails_ErrMappingNotSupported);
                return false;
            }
            else if (MappingViewModelHelper.CanEditMappingsForFunctionImport(fi, ref errorMessage))
            {
                return true;
            }
            else
            {
                SetWatermarkInfo(string.Format(CultureInfo.CurrentCulture, Resources.MappingDetails_ErrMslGeneral, errorMessage));
                return false;
            }
        }
private bool CanEditMappingsForFunctionImport ( FunctionImport fi ) { var errorMessage = string . Empty ; if ( EdmFeatureManager . GetFunctionImportMappingFeatureState ( fi . Artifact . SchemaVersion ) . IsEnabled ( ) == false ) { SetWatermarkInfo ( Resources . MappingDetails_ErrMappingNotSupported ) ; return false ; } else if ( MappingViewModelHelper . CanEditMappingsForFunctionImport ( fi , ref errorMessage ) ) { return true ; } else { SetWatermarkInfo ( string . Format ( CultureInfo . CurrentCulture , Resources . MappingDetails_ErrMslGeneral , errorMessage ) ) ; return false ; } }
Calls a validation method to check if this association's MSL is editable by the designer
Calls a validation method to check if this association ' s MSL is editable by the designer
// check whether we should lit up the function import mapping.
fi
FunctionImport