src/Misc/EFTools/EntityDesign/UI/ViewModels/MappingDetails/FunctionImport/MappingFunctionImport.cs
// <summary>
//     Returns list of all s-side functions
// </summary>
Returns list of all s-side functions
Returns list of all s - side functions
internal override Dictionary<MappingLovEFElement, string> GetListOfValues(ListOfValuesCollection type)
        {
            var lov = new Dictionary<MappingLovEFElement, string>();
            Debug.Assert(type == ListOfValuesCollection.FirstColumn, "Unsupported lov type was sent");
            if (type == ListOfValuesCollection.FirstColumn)
            {
                var functionImport = FunctionImportMapping.FunctionImportName.Target;
                Debug.Assert(functionImport != null, "Couldn't find FunctionImport binding");
                if (functionImport != null)
                {
                    var storageModel = EFExtensions.StorageModel(functionImport.Artifact);
                    foreach (var function in storageModel.Functions())
                    {
                        lov.Add(new MappingLovEFElement(function, function.DisplayName), function.DisplayName);
                    }
                    return lov;
                }
            }
            return base.GetListOfValues(type);
        }
internal override Dictionary < MappingLovEFElement , string > GetListOfValues ( ListOfValuesCollection type ) { var lov = new Dictionary < MappingLovEFElement , string > ( ) ; Debug . Assert ( type == ListOfValuesCollection . FirstColumn , " " ) ; if ( type == ListOfValuesCollection . FirstColumn ) { var functionImport = FunctionImportMapping . FunctionImportName . Target ; Debug . Assert ( functionImport != null , " " ) ; if ( functionImport != null ) { var storageModel = EFExtensions . StorageModel ( functionImport . Artifact ) ; foreach ( var function in storageModel . Functions ( ) ) { lov . Add ( new MappingLovEFElement ( function , function . DisplayName ) , function . DisplayName ) ; } return lov ; } } return base . GetListOfValues ( type ) ; }
Returns list of all s-side functions
Returns list of all s - side functions
// add the Function to the list
type
ListOfValuesCollection