Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.
- Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
- Exception Details: System.Data.Entity.Core.MetadataException: Schema specified is not valid. Errors:
- The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Order'. Previously found CLR type 'PapaBob.Persistence.Order', newly found CLR type 'PapaBob.DTO.Order'.
- The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.
- Source Error:
- Line 20:
- Line 21: //Transform the database of sizes into a list of sizes
- Line 22: var dbSizes = db.Sizes.ToList();
- Line 23:
- Line 24: // Create a new variable which will hold the list of all created sizes of pizzas with their prices
- Source File: C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Persistence\OrderRepsository.cs Line: 22
- Stack Trace:
- [MetadataException: Schema specified is not valid. Errors:
- The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Order'. Previously found CLR type 'PapaBob.Persistence.Order', newly found CLR type 'PapaBob.DTO.Order'.
- The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'Topping'. Previously found CLR type 'PapaBob.Persistence.Topping', newly found CLR type 'PapaBob.DTO.Topping'.]
- System.Data.Entity.Core.Metadata.Edm.ObjectItemCollection.LoadAssemblyFromCache(Assembly assembly, Boolean loadReferencedAssemblies, EdmItemCollection edmItemCollection, Action`1 logLoadMessage) +738
- System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.ExplicitLoadFromAssembly(Assembly assembly, ObjectItemCollection collection, Action`1 logLoadMessage) +101
- System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly, Action`1 logLoadMessage) +78
- System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.LoadFromAssembly(Assembly assembly) +12
- System.Data.Entity.Core.Metadata.Edm.MetadataOptimization.TryUpdateEntitySetMappingsForType(Type entityType) +98
- System.Data.Entity.Internal.InternalContext.UpdateEntitySetMappingsForType(Type entityType) +41
- System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +26
- System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +53
- System.Data.Entity.Internal.Linq.InternalSet`1.GetEnumerator() +15
- System.Data.Entity.Infrastructure.DbQuery`1.System.Collections.Generic.IEnumerable<TResult>.GetEnumerator() +53
- System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +375
- System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
- PapaBob.Persistence.OrderRepsository.GetSizes() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Persistence\OrderRepsository.cs:22
- PapaBob.Domain.OrderManager.GetSize() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Domain\OrderManager.cs:18
- PapaBob.Presentation.Default.DisplaySizes() in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Presentation\Default.aspx.cs:44
- PapaBob.Presentation.Default.Page_Load(Object sender, EventArgs e) in C:\Users\wceyssen\source\repos\PapaBobsChallenge\PapaBob.Presentation\Default.aspx.cs:14
- System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
- System.Web.UI.Control.OnLoad(EventArgs e) +95
- System.Web.UI.Control.LoadRecursive() +59
- System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement