Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - LinQ. update column with auto generated value

Reply
 
Old 07-22-2008   #1 (permalink)
Roger Tranchez


 
 

LinQ. update column with auto generated value

Hello Carles,

The symptom sounds very similar to the problem described in the codeproject
article:
http://www.codeproject.com/KB/linq/S...ultValues.aspx
(see the part of the author set the IsDbGenerated property to true)

The workaround is to hook the Updating and Inserting events of
LinqDataSource, and reset the LINQ object's default values for insert and
update.

Please have a look and let me know whether the article is helpful to you or
not. If you have any other concerns or questions, DON'T hesitate to tell me.

Regards,
Jialiang Ge (jialge@xxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

My System SpecsSystem Spec
Old 07-23-2008   #2 (permalink)
Jialiang Ge [MSFT]


 
 

RE: LinQ. update column with auto generated value

Hello Carles,

The symptom sounds very similar to the problem described in the codeproject
article:
http://www.codeproject.com/KB/linq/S...ultValues.aspx
(see the part of the author set the IsDbGenerated property to true)

The workaround is to hook the Updating and Inserting events of
LinqDataSource, and reset the LINQ object's default values for insert and
update.

Please have a look and let me know whether the article is helpful to you or
not. If you have any other concerns or questions, DON'T hesitate to tell me.

Regards,
Jialiang Ge (jialge@xxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

My System SpecsSystem Spec
Old 07-28-2008   #3 (permalink)
Jialiang Ge [MSFT]


 
 

RE: LinQ. update column with auto generated value

Hello Carles

I am writing to check the status of the issue on your side. Would you mind
letting me know the result of the suggestions? If you need further
assistance, feel free to let me know. I will be more than happy to be of
assistance.

Have a great day!

Regards,
Jialiang Ge (jialge@xxxxxx, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxx.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

My System SpecsSystem Spec
Old 08-05-2008   #4 (permalink)
Roger Tranchez


 
 

RE: LinQ. update column with auto generated value

Hello Jialiang,

Thanks for response. All perfect,

Bye!!


--
Carles Ferrer
MCTS
..NET 2005 and DB developer


""Jialiang Ge [MSFT]"" wrote:
Quote:

> Hello Carles
>
> I am writing to check the status of the issue on your side. Would you mind
> letting me know the result of the suggestions? If you need further
> assistance, feel free to let me know. I will be more than happy to be of
> assistance.
>
> Have a great day!
>
> Regards,
> Jialiang Ge (jialge@xxxxxx, remove 'online.')
> Microsoft Online Community Support
>
> =================================================
> Delighting our customers is our #1 priority. We welcome your comments and
> suggestions about how we can improve the support we provide to you. Please
> feel free to let my manager know what you think of the level of service
> provided. You can send feedback directly to my manager at:
> msdnmg@xxxxxx.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> =================================================
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
auto generated message reply Vista mail
[LINQ TO SQL] Probleme for update a child element .NET General
Linq To Sql using store proc is calling update instead of delete .NET General
datagrid column update vb 2005 .NET General
Can't get SP1 from auto update Windows Updates


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46