Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for table valued functions #11129

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.TestUtilities;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Xunit;
using System.Globalization;
using Xunit.Abstractions;

namespace Microsoft.EntityFrameworkCore.Query
Expand All @@ -21,7 +15,157 @@ public UdfDbFunctionOracleTest(Oracle fixture, ITestOutputHelper testOutputHelpe
//fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper);
}

public class Oracle : UdfFixtureBase

#region Table Valued Tests

[Fact(Skip = "TODO")]
public override void TVF_Stand_Alone()
{
base.TVF_Stand_Alone();
}

[Fact(Skip = "TODO")]
public override void TVF_Stand_Alone_With_Translation()
{
base.TVF_Stand_Alone_With_Translation();
}

[Fact(Skip = "TODO")]
public override void TVF_Stand_Alone_Parameter()
{
base.TVF_Stand_Alone_Parameter();
}

[Fact(Skip = "TODO")]
public override void TVF_Stand_Alone_Nested()
{
base.TVF_Stand_Alone_Nested();
}

[Fact(Skip = "TODO")]
public override void TVF_CrossApply_Correlated_Select_Anonymous()
{
base.TVF_CrossApply_Correlated_Select_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_Direct_In_Anonymous()
{
base.TVF_Select_Direct_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_Correlated_Direct_In_Anonymous()
{
base.TVF_Select_Correlated_Direct_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_Correlated_Direct_With_Function_Query_Parameter_Correlated_In_Anonymous()
{
base.TVF_Select_Correlated_Direct_With_Function_Query_Parameter_Correlated_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_Correlated_Subquery_In_Anonymous()
{
base.TVF_Select_Correlated_Subquery_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_Correlated_Subquery_In_Anonymous_Nested()
{
base.TVF_Select_Correlated_Subquery_In_Anonymous_Nested();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_NonCorrelated_Subquery_In_Anonymous()
{
base.TVF_Select_NonCorrelated_Subquery_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Select_NonCorrelated_Subquery_In_Anonymous_Parameter()
{
base.TVF_Select_NonCorrelated_Subquery_In_Anonymous_Parameter();
}

[Fact(Skip = "TODO")]
public override void TVF_Correlated_Select_In_Anonymous()
{
base.TVF_Correlated_Select_In_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_CrossApply_Correlated_Select_Result()
{
base.TVF_CrossApply_Correlated_Select_Result();
}

[Fact(Skip = "TODO")]
public override void TVF_CrossJoin_Not_Correlated()
{
base.TVF_CrossJoin_Not_Correlated();
}

[Fact(Skip = "TODO")]
public override void TVF_CrossJoin_Parameter()
{
base.TVF_CrossJoin_Parameter();
}

[Fact(Skip = "TODO")]
public override void TVF_Join()
{
base.TVF_Join();
}

[Fact(Skip = "TODO")]
public override void TVF_LeftJoin_Select_Anonymous()
{
base.TVF_LeftJoin_Select_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_LeftJoin_Select_Result()
{
base.TVF_LeftJoin_Select_Result();
}

[Fact(Skip = "TODO")]
public override void TVF_OuterApply_Correlated_Select_TVF()
{
base.TVF_OuterApply_Correlated_Select_TVF();
}

[Fact(Skip = "TODO")]
public override void TVF_OuterApply_Correlated_Select_DbSet()
{
base.TVF_OuterApply_Correlated_Select_DbSet();
}

[Fact(Skip = "TODO")]
public override void TVF_OuterApply_Correlated_Select_Anonymous()
{
base.TVF_OuterApply_Correlated_Select_Anonymous();
}

[Fact(Skip = "TODO")]
public override void TVF_Nested()
{
base.TVF_Nested();
}

[Fact(Skip = "TODO")]
public override void TVF_Correlated_Nested_Func_Call()
{
base.TVF_Correlated_Nested_Func_Call();
}

#endregion


public class Oracle : BaseUdfFixture
{
protected override string StoreName { get; } = "UDFDbFunctionOracleTests";
protected override ITestStoreFactory TestStoreFactory => OracleTestStoreFactory.Instance;
Expand Down Expand Up @@ -108,8 +252,8 @@ RETURN INTEGER IS
RETURN NVARCHAR2 IS
BEGIN
RETURN customerName;
END;");
END;");

context.SaveChanges();
}
}
Expand Down
Loading