LINQ in Action roller

Overriding default behaviour of AutoGen column

I have a table Platform with an identity column called PLFID. The DLinq designer generated code correctly attributed this column as Id=True, AutoGen=True. For some rows I need to be able to force a value for the PLFID column, but DLinq won't let me. Either it overwrites it with the @@IDENTITY value, or throws an Exception that I'm not allowed to assign a value to this column. Here is my example code: Platform platform = new Platform (); ...populated the other columns dbContext.Platform.Add(platform); Read More...
Published Wednesday, February 21, 2007 9:49 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication