Skip to content
Merged
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
Fix for EF Code first, as Name isn't the plural version of the table …
…name
  • Loading branch information
bzbetty committed Mar 7, 2012
commit 7d33c1a79e6850cf59b59ea47666201bb2c0a94d
4 changes: 2 additions & 2 deletions Source/EntityFramework.Extended/Mapping/MappingResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down