Dataset/Adapter issue

Discussion in 'ASP .Net' started by Matthew Wells, Apr 11, 2012.

  1. Good Morning!

    I have an MVC 3 project - barely startd. I'm trying to compare an Entity
    Framework 4.1 model to my own dataset/class configuration. Yes I know this
    will defeat the purpose of MVC, but I have my reasons. EF seems to have
    limitations on compound primary keys and some other issues I'll address in
    another group. I figured I would use a technique I use in my standard web
    projects. My project/namespace is called "Tools". I've created a dataset
    called dsMaterials with one table adapter called daMaterials. This is
    connected to a Materials table. Everything good so far. Now I create a
    class called Mats.cs. At the top I have

    using System.ComponentModel;
    using dsMaterialsTableAdapters;

    This has been a pretty standard thing for me for years, but I keep getting
    "the type or namespace dsMaterialsTableAdapters could not be found". I've
    put them both in the same folder and changing the namespace of the Mats.cs
    accordingly with no luck.

    I was able to do this correctly in a Windows Forms app, but not MVC. As far
    as I know, being an MVC app should not have anything to do with this. Does
    anyone know the answer?

    Thank you

    Matthew Wells
     
    Matthew Wells, Apr 11, 2012
    #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. Nedu N
    Replies:
    1
    Views:
    1,802
    Chris Taylor
    Oct 31, 2003
  2. =?Utf-8?B?SklNLkgu?=

    Q: the same adapter and dataset name

    =?Utf-8?B?SklNLkgu?=, Apr 4, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    316
    Scott Allen
    Apr 4, 2005
  3. Replies:
    0
    Views:
    1,421
  4. David
    Replies:
    1
    Views:
    341
    David Wier
    Feb 12, 2007
  5. Lee C.

    GridView control adapter issue

    Lee C., Mar 19, 2008, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    172
    Lee C.
    Mar 19, 2008
Loading...

Share This Page