System.Data.Common.DbXmlEnabledProviderManifest.GetStoreFunctions()

Here are the examples of the csharp api class System.Data.Common.DbXmlEnabledProviderManifest.GetStoreFunctions() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public override System.Collections.ObjectModel.ReadOnlyCollection<EdmFunction> GetStoreFunctions()
        {
            if (this._functions == null)
            {
                if (this._version == SqlVersion.Sql10)
                {
                    this._functions = base.GetStoreFunctions();
                }
                else
                {
                    //Remove the functions over katmai types from both Sql 9 and Sql 8.
                    IEnumerable<EdmFunction> functions = base.GetStoreFunctions().Where(f => !IsKatmaiOrNewer(f));
                    if(this._version == SqlVersion.Sql8)
                    {
                        // SQLBUDT 550998: Remove unsupported overloads from Provider Manifest on SQL 8.0
                        functions = functions.Where(f => !IsYukonOrNewer(f));      
                    }
                    this._functions = functions.ToList().AsReadOnly();
                }
            }

            return this._functions;
        }