Skip to content

Commit

Permalink
Created a new project for Entity Framework 6 which uses the new names…
Browse files Browse the repository at this point in the history
…paces
  • Loading branch information
pdonald authored and franciscojunior committed Jun 15, 2013
1 parent e6f6cf7 commit 63af645
Show file tree
Hide file tree
Showing 15 changed files with 3,212 additions and 0 deletions.
Binary file added lib/EntityFramework.dll
Binary file not shown.
3 changes: 3 additions & 0 deletions src/Npgsql/NpgsqlFactory.cs
Expand Up @@ -24,6 +24,9 @@

using System;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common;
#endif

namespace Npgsql
{
Expand Down
5 changes: 5 additions & 0 deletions src/Npgsql/NpgsqlProviderManifest.cs
Expand Up @@ -3,7 +3,12 @@
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.Metadata.Edm;
#else
using System.Data.Metadata.Edm;
#endif
using System.Xml;
using System.Data;

Expand Down
6 changes: 6 additions & 0 deletions src/Npgsql/NpgsqlServices.cs
Expand Up @@ -3,8 +3,14 @@
using System.Collections.Generic;
using System.Data.Common;
using System.Xml;
#if ENTITIES6
using System.Data.Entity.Core.Common;
using System.Data.Entity.Core.Common.CommandTrees;
using System.Data.Entity.Core.Metadata.Edm;
#else
using System.Data.Common.CommandTrees;
using System.Data.Metadata.Edm;
#endif
using Npgsql.SqlGenerators;

namespace Npgsql
Expand Down
17 changes: 17 additions & 0 deletions src/Npgsql/SqlGenerators/SqlBaseGenerator.cs
Expand Up @@ -2,8 +2,13 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
using System.Data.Entity.Core.Metadata.Edm;
#else
using System.Data.Common.CommandTrees;
using System.Data.Metadata.Edm;
#endif
using System.Linq;

namespace Npgsql.SqlGenerators
Expand Down Expand Up @@ -1320,6 +1325,18 @@ private void SubstituteFilterNames(string joinPartVariableName, string variableN
// _projectVarName = _projectScopeStack.Pop();
// _filterVarName = _filterScopeStack.Pop();
//}

#if ENTITIES6
public override VisitedExpression Visit(DbInExpression expression)
{
throw new NotImplementedException("New in Entity Framework 6");
}

public override VisitedExpression Visit(DbPropertyExpression expression)
{
throw new NotImplementedException("New in Entity Framework 6");
}
#endif
}
}
#endif
4 changes: 4 additions & 0 deletions src/Npgsql/SqlGenerators/SqlDeleteGenerator.cs
Expand Up @@ -2,7 +2,11 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
#else
using System.Data.Common.CommandTrees;
#endif

namespace Npgsql.SqlGenerators
{
Expand Down
8 changes: 8 additions & 0 deletions src/Npgsql/SqlGenerators/SqlInsertGenerator.cs
Expand Up @@ -2,7 +2,11 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
#else
using System.Data.Common.CommandTrees;
#endif

namespace Npgsql.SqlGenerators
{
Expand Down Expand Up @@ -36,7 +40,11 @@ public override VisitedExpression Visit(DbPropertyExpression expression)
DbScanExpression scan = _commandTree.Target.Expression as DbScanExpression;
if (scan != null)
{
#if ENTITIES6
System.Data.Entity.Core.Metadata.Edm.MetadataProperty metadata;
#else
System.Data.Metadata.Edm.MetadataProperty metadata;
#endif
string overrideSchema = "http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator:Schema";
if (scan.Target.MetadataProperties.TryGetValue(overrideSchema, false, out metadata) && metadata.Value != null)
{
Expand Down
4 changes: 4 additions & 0 deletions src/Npgsql/SqlGenerators/SqlSelectGenerator.cs
Expand Up @@ -2,7 +2,11 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
#else
using System.Data.Common.CommandTrees;
#endif

namespace Npgsql.SqlGenerators
{
Expand Down
4 changes: 4 additions & 0 deletions src/Npgsql/SqlGenerators/SqlUpdateGenerator.cs
Expand Up @@ -2,7 +2,11 @@
using System;
using System.Collections.Generic;
using System.Data.Common;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
#else
using System.Data.Common.CommandTrees;
#endif

namespace Npgsql.SqlGenerators
{
Expand Down
5 changes: 5 additions & 0 deletions src/Npgsql/SqlGenerators/VisitedExpression.cs
Expand Up @@ -3,8 +3,13 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
#if ENTITIES6
using System.Data.Entity.Core.Common.CommandTrees;
using System.Data.Entity.Core.Metadata.Edm;
#else
using System.Data.Metadata.Edm;
using System.Data.Common.CommandTrees;
#endif
using NpgsqlTypes;
using System.Data;

Expand Down

0 comments on commit 63af645

Please sign in to comment.