This is a migrated thread and some comments may be shown as answers.

ObjectContainerProvider Build Error

2 Answers 32 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
George
Top achievements
Rank 1
George asked on 05 Mar 2009, 07:37 AM
When using the Expert Wizard to add an ObjectContainerProvider, it generates the file, but when I try to build it, I receive the following error...

The type or namespace name 'ObjectContainerProvider' could not be found (are you missing a using directive or an assembly reference?)

Evaluating the file, here is where it is failing...

    /// <summary>  
    /// Summary description for ObjectContainerProvider1.  
    /// </summary>  
    public class ObjectContainerProvider1 : IObjectScopeProvider, ObjectContainerProvider, IDBConnection  
    {  
        private Database myDatabase = null;  
 

Can anyone tell me why?  Since this is generated code, I find it hard to believe there is a missing "using directive", unless, of course, the wizard has a bug.  Removing ObjectContainerProvider from the Class allows it to build without error, but I doubt that's the correct course of action.

Thanks,

Kuba

2 Answers, 1 is accepted

Sort by
0
tmlipinski
Top achievements
Rank 1
answered on 05 Mar 2009, 10:53 AM
Hi,

It's a misspelling in c:\Program Files\telerik\OpenAccess ORM\sdk\IDEIntegrations\templates\templateObjectContainerProvider.cs (underline means installation-dependend part of the path) file: it should be IObjectContainerProvider, of course.
You can correct this file and get correct code.
There is a thread about this issue somewhere in this forum.

Regards
Tomasz
0
Ady
Telerik team
answered on 09 Mar 2009, 12:36 PM
Hello Kuba,

 This has been fixed and will be available in the next release.

 As suggested by Tomasz, this can be fixed by modifying the template file - templateObjectContainerProvider.cs file.

Best wishes,
Ady
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Development (API, general questions)
Asked by
George
Top achievements
Rank 1
Answers by
tmlipinski
Top achievements
Rank 1
Ady
Telerik team
Share this question
or