Choose a Context Object empty

Choose a Context Object empty

Postby dooh » Sun 04 Mar 2012 19:38

Hello,


I add a Context using the Wizard, and rebuild the project, but when use a DBLinqDataSource and if "Show only DataContext objects" its check the DropdownList is empy.

If uncheck this setting i see can the LinqConnect Model but the Advanced options are disabled.

What i have to do?

DevArt.Data.Linq Version: 3.1.25.0

Best Recars
dooh
 
Posts: 30
Joined: Sun 14 Jan 2007 21:11

Postby MariiaI » Mon 05 Mar 2012 14:45

Thank you for your report. This is a known issue.
The problem is that the standard Visual Studio wizard is used to configure DbLinqDataSource, and this wizard detects only LINQ to SQL data contexts. We plan to fix this issue, though cannot provide any timeframe. At the moment, you can select your DataContext type from the full list of types.
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Postby dooh » Mon 05 Mar 2012 22:45

Ok, but why the advance options it disabled and i cannot generated the automatic staments (insert, update, delete, etc...) from designer. Its the same issue?

Thanks
dooh
 
Posts: 30
Joined: Sun 14 Jan 2007 21:11

Postby MariiaI » Tue 06 Mar 2012 08:04

The wizard allows using the 'Advanced' options for LINQ to SQL data contexts only.
However, you can configure them manually in the web page markup. You need to add the necessary property to the DataSource tag (e.g., EnableDelete, EnableInsert, EnableUpdate) and set it to True.
For example:
Code: Select all
      ContextTypeName="YourDataContext" EnableObjectTracking="False"
      EnableViewState="False" EntityTypeName="" TableName="YourTable"
      onselecting="DbLinqDataSource1_Selecting" EnableDelete="True">
MariiaI
Devart Team
 
Posts: 1472
Joined: Mon 13 Feb 2012 08:17


Return to LinqConnect (LINQ to SQL support)