The answer is That is expected. The autogenerated property is only set to true for certain column types. See Samirs response below. Samir works on the SQL side of the LINQ project.
If you want to force that behavior you can override LINQ in the DataContext.
From:
Sent: Wednesday, May 28, 2008 6:32 PM
To: LINQ User Community
Subject: RE: LINQ O/R Maper Bug or ???
AutoGenerated (the IsDbGenerated attribute value) is true only for auto-incrementing (identity) and version (row version) columns. Default values dont lead to the AutoGenerated attribute.
You need to override the default behavior of LINQ to SQL inserts by defining your own insert methods on the DataContext.
Thanks,
Main Topics
Browse All Topics





by: WanaBRichPosted on 2008-05-23 at 04:21:39ID: 21631004
I have asked this question to the Microsoft LINQ Team... Stay tuned