Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7035185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:16:28+00:00 2026-05-28T01:16:28+00:00

I am using sqlmetal.exr to generate the mapping code for me. I am calling

  • 0

I am using sqlmetal.exr to generate the mapping code for me. I am calling sql metal by using.

cd C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
SqlMetal.exe /server:servername\SQL /database:mydb /code:mycode.cs

The output is a cs file and the command promt says:

Microsoft (R) Database Mapping Generator 2008 version 1.00.30729 for
Microsoft (R) .NET Framework version 3.5 Copyright (C) Microsoft
Corporation. All rights reserved.

When I add the file to my project and try to build it I get the following error:

Using the generic type ‘System.Data.Linq.Table’ requires 1 type
arguments

This is in my mycode.cs file. I am referencing System.Data.Linq and System.Data. What referennce is missing to get this to work?

Update

Make sure you have System.Data.Linq in your GAC and that the assembly
version is 3.5.0.0. Also make sure that’s the version your project is
referencing.

enter image description here

enter image description here

Double-check that your application’s target framework hasn’t somehow
been changed to something other than 3.5. The Linq To SQL features
only work with the 3.5 framework.

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:16:29+00:00Added an answer on May 28, 2026 at 1:16 am

    if the problem persist here are a list of things you can try to resolve the issue

    A few things to check/try:

    • Make sure you have System.Data.Linq in your GAC and that the assembly version is 3.5.0.0. Also make sure that’s the version your project is referencing.

    • When you look at the project references is there a yellow “!” icon next to the reference? If so, that indicates that the version of System.Data.Linq your project references is not being found by VS. You should try deleting the reference and adding a new one.

    • Double-check that your application’s target framework hasn’t somehow been changed to something other than 3.5. The Linq To SQL features only work with the 3.5 framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm thinking of using SqlMetal to auto-generate LinqToSql code for a simple and small
Using a Microsoft version of SQL, here's my simple query. If I query a
I am using the code generated using SQLMetal for my database entities. They all
There is Windows Phone 7 app using SQL CE database. I need to delete
I've created a table in Microsoft Sql CE that I'm using to hold some
I am using SqlMetal to general my DataContext.dbml class for my ASP.net application using
I'm using LinqToSQL in a 3.5 framework project in VS2K8, running against MS SQL
I want to be able to interact with an SQL database using LINQ and
Currently, changes to the database are made through the SQL Server Management program. IF
I generated this class using SQLMetal.exe. It is very bindable at runtime, but if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.