Jump to content


Photo

Error Messages Building The Breakaway Model


  • This topic is locked This topic is locked
2 replies to this topic

#1 BobOfCA

BobOfCA

    Active Member

  • Members
  • PipPip
  • 12 posts

Posted 27 September 2011 - 07:23 PM

When I finished chapter eight in Julie’s 2nd Edition book, saved and built the project, it said the build was successful, but I got the two error messages below. I looked at the errata/forums here, but couldn’t find where anyone else had this problem. I'm not a developer and have no idea what they refer to, can you help? I’m using VS 2010 Express and Visual Basic.

File BAModel.edmx
Error 2098: A function mapping for ‘to’ role Reservations is not permitted because it is a foreign key association.
Error 2037: A mapping function bindings specifies a function BreakAwayModel.Store.InsertPayment but does not map the following function parameters: reservationID.

BobOfCA

Edited by BobOfCA, 27 September 2011 - 07:35 PM.


#2 BobOfCA

BobOfCA

    Active Member

  • Members
  • PipPip
  • 12 posts

Posted 06 October 2011 - 08:46 PM

When I finished chapter eight in Julie’s 2nd Edition book, saved and built the project, it said the build was successful, but I got the two error messages below. I looked at the errata/forums here, but couldn’t find where anyone else had this problem. I'm not a developer and have no idea what they refer to, can you help? I’m using VS 2010 Express and Visual Basic.

File BAModel.edmx
Error 2098: A function mapping for ‘to’ role Reservations is not permitted because it is a foreign key association.
Error 2037: A mapping function bindings specifies a function BreakAwayModel.Store.InsertPayment but does not map the following function parameters: reservationID.

BobOfCA


This is BobOfCa, and I am requesting that this post be removed or that no one should take the time to try to respond, because I have run into some more difficultities and realize this material is far too advanced for me. I am now concentrating on a more simple project that Julie has recently posted on the internet.
Thank you,
Bob

#3 eerora

eerora

    New Member

  • Members
  • Pip
  • 1 posts

Posted 19 May 2012 - 12:53 AM

You have accidentally mapped Reservervation.ReservationID instead of ReservationID. Happened me too, and took me a while to find my mistake.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users