|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
NET2: Bug in TableAdapter Query Code GeneratorThere appears to be a bug in the code which (re)generates the command text for queries returning a table field in .NET 2.
1) Create an sql table 2) Create a TableAdapter for the the table in #1 3) Create a query in the TableAdapter in #2 which returns a single value whose value is a field in the sql table 4) Add a new field to the sql table in #1 5) Configure the TableAdapter in #2 to add the field added in #4 6) Examine in the code for the single value query in #3 (on my system, the single field is replaced by a list of all the fields defined in the TableAdapter) - Mark Mark Olbert wrote:
> There appears to be a bug in the code which (re)generates the command Please file this at:> text for queries returning a table field in .NET 2. > > 1) Create an sql table > 2) Create a TableAdapter for the the table in #1 > 3) Create a query in the TableAdapter in #2 which returns a single > value whose value is a field in the sql table 4) Add a new field to > the sql table in #1 5) Configure the TableAdapter in #2 to add the > field added in #4 6) Examine in the code for the single value query > in #3 (on my system, the single field is replaced by a list of all > the fields defined in the TableAdapter) http://msdn.microsoft.com/productfeedback it will then be picked up and fixed. :) FB -- ------------------------------------------------------------------------ Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com My .NET blog: http://weblogs.asp.net/fbouma Microsoft MVP (C#) ------------------------------------------------------------------------ |
|||||||||||||||||||||||