Using the EDM designer

Discussion in 'ASP .Net' started by Justin Dutoit, Feb 16, 2009.

  1. Hi. Please help- this is a question on the ADO.NET Entity Framework and its
    EDM designer in Visual Web Developer Express (for the .edmx file). I have a
    shopping application with a shopping trolley, with the following information
    showed to the user:
    Brand, Productname, NumberOfUnitsInTrolley
    Before the Entity Framework came along, in my relational db, this used to be
    achieved by (in the Purchases table):
    Fields Productnumber (FK), NumberOfUnitsInTrolley.
    Brand and Productname came from the Products table using the FK.

    I want to create an Entity called BasketItems in the VWD EDM designer view
    to represent a trolley. I've mapped Brand and Productname to the Products
    table, and NumberOfUnitsInTrolley to Purchases. The problem seems to be with
    the Key field of the BasketItems Entity. It tells me that Property
    'BasketItemsNumber' (the Key field) is not mapped (what should it map to?
    When I tried mapping it to the Purchases table PK I got the error 'Must
    specify mapping for all key properties'). I could use some info on how the
    designer works- please explain what I should do, the more info, the
    better...

    Thanks
    Justin Dutoit
     
    Justin Dutoit, Feb 16, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve B.
    Replies:
    4
    Views:
    975
    Cheryl D Wise
    Jun 1, 2007
  2. markla
    Replies:
    10
    Views:
    839
    Razvan Sovrea
    Jun 14, 2010
  3. Bobby Edward

    EDM question - How insert record thru code?

    Bobby Edward, Sep 24, 2008, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    Bobby Edward
    Sep 24, 2008
  4. Alexander Higgins
    Replies:
    3
    Views:
    1,084
    Teemu Keiski
    Jul 30, 2007
  5. Oliver S?der

    Novadigm Radia *.edm files

    Oliver S?der, Sep 27, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    289
    Oliver S?der
    Sep 27, 2004
Loading...

Share This Page