Skip to content
Browse files

Merge pull request #5 from bzbetty/patch-1

Fix for EF Code first, as Name isn't the plural version of the table nam...
  • Loading branch information...
2 parents 34e5775 + 7d33c1a commit bc7544512221aac9873c29dfd3b8d3993f3d125c @pwelter34 pwelter34 committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/EntityFramework.Extended/Mapping/MappingResolver.cs
View
4 Source/EntityFramework.Extended/Mapping/MappingResolver.cs
@@ -167,7 +167,7 @@ private static void SetTableName(EntityMap entityMap)
{
var builder = new StringBuilder(50);
- EntitySet storeSet = entityMap.StoreSet;
+ dynamic storeSet = new DynamicProxy(entityMap.StoreSet);
string schema = null;
MetadataProperty schemaProperty;
@@ -185,7 +185,7 @@ private static void SetTableName(EntityMap entityMap)
builder.Append(".");
}
- builder.Append(QuoteIdentifier(storeSet.Name));
+ builder.Append(QuoteIdentifier((string)storeSet.Table));
entityMap.TableName = builder.ToString();
}

0 comments on commit bc75445

Please sign in to comment.
Something went wrong with that request. Please try again.