Add New Entities Mapped On Tables From Catalog

Posts   
 
    
Posts: 3
Joined: 01-Feb-2011
# Posted on: 01-Feb-2011 13:15:07   

Hi,

I'm very new to this, so pls be nice simple_smile Downloaded the trial version of 3.0, and was trying to create entites from by Sql Db.

The documentation tells me to --> In the Project Explorer, right-click 'Entities' and choose 'Add New Entities Mapped On Tables From Catalog(s)'. You can also select 'Entities' and press Ctrl + T

But I don't have this option in my menu. Pls see attached screen.

Thanks Andre

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39909
Joined: 17-Aug-2003
# Posted on: 01-Feb-2011 13:40:09   

Where in the documentation does it say that, as it has to be the catalog explorer, as explained here

I think you're looking at v2.6 docs?

Frans Bouma | Lead developer LLBLGen Pro
Posts: 3
Joined: 01-Feb-2011
# Posted on: 02-Feb-2011 06:56:07   

Hi,

I was looking at the wrong documentation. Ok, i did the steps according to the link you gave me. My entities were made. I added this to my VS project.

No errors so far. Now I try to retrieve the list of objects (People) using the context, but i get this error: The type 'Data.EntityClasses.Person' is not mapped as a Table.

Obviously i'm doing something wrong, please help.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39909
Joined: 17-Aug-2003
# Posted on: 02-Feb-2011 09:16:58   

Please give more information. You don't even specify which o/r mapper framework you're using, nor what your code is. We don't have your code/project in front of us so we can't see what you're doing wrong.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 3
Joined: 01-Feb-2011
# Posted on: 02-Feb-2011 09:21:51   

i'm new to this, so be nice ok simple_smile

Im using Target Framework Linq to SQL.

I have a web service that jsut tries to tereive a list on People.

            var context = new MyDataContext();

            var q = (from t in context.People
                     select t).ToList();

What more do you need ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39909
Joined: 17-Aug-2003
# Posted on: 02-Feb-2011 09:48:50   

andrerobbertse wrote:

i'm new to this, so be nice ok simple_smile

Im using Target Framework Linq to SQL.

I have a web service that jsut tries to tereive a list on People.

            var context = new MyDataContext();

            var q = (from t in context.People
                     select t).ToList();

What more do you need ?

context.People returns a Person type? do other entities work? Did you choose (in project properties -> output setting values) xml mappings or attribute mappings? If you chose xml mappings (MappingsAsExternalXmlFile is true), how did you pass the xml file to the context? See manual.

Frans Bouma | Lead developer LLBLGen Pro