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

  • Home
  • SEARCH
  • 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 349915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:30:09+00:00 2026-05-12T11:30:09+00:00

I am a beginner in LINQ. I am using .NET 3.5. and VS 2008.

  • 0

I am a beginner in LINQ.

I am using .NET 3.5. and VS 2008.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data.Linq.Mapping;
using System.Data.Linq.Provider;

namespace LINQ_to_SQL_Test
{
    [Table(Name="Person")]
    public class Person
    {
        [Column(Name="ID", Storage="_ID", DbType="IS NOT NULL IDENTITY", Id=true, AutoGen=true)]
        public int ID { get; set; }
        public int IDRole { get; set; }
        public string LastName { get; set; }
        public string FirstName { get; set; }
    }
}

The program was unable to find the definitions for Id and AutoGen in Column attribute.

What can I do?

  • 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-12T11:30:09+00:00Added an answer on May 12, 2026 at 11:30 am

    By “[t]he program” I am assuming that you are referring to a C# compiler, and probably csc installed with Visual Studio 2008.

    The syntax that you are using to set the properties of the ColumnAttribute is outdated; I believe that syntax was correct when LINQ was released as a CTP. The correct syntax now is:

    [Column
        (
        Name="ID",
        Storage="_ID",
        DbType="Int NOT NULL IDENTITY",
        IsPrimaryKey=true,
        IsDbGenerated=true
        )
    ]
    

    That is, Id has been replaced by IsPrimaryKey and AutoGen has been replaced by IsDbGenerated.

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

Sidebar

Related Questions

I have the following code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using
I am a beginner in using LINQ. I have an xml data with the
I'm just playing with some linq and asp.net - absolute beginner so I'm not
I am a beginner with LINQ and lambda function's. I was wondering how can
I'm a Linq beginner so just looking for someone to let me know if
Beginner here: In this answer to my question of how to insert data into
I'm still a beginner at .NET MVC, so please correct me if I'm doing
This is a beginner question, but it's been frustrating me... I am using C#,
A beginner question, bear with me: I'm just wondering under what circumstances one should
A beginner's question. I'm building a .swf with Flex Ant. To my .swf I

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.