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

All in one project or seperating entities of one db to different project

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hasan Oz
Top achievements
Rank 1
Hasan Oz asked on 24 Aug 2010, 12:32 PM
Hi,
I have two question I tried but both I get enhanced problems.

  1. Is it possible only one project contains entities and Scope usages. (for example : One form project contain db entities and datagridview datasorce filler codes. )
    private void Form1_Load(object sender, EventArgs e)
            {
                IObjectScope scope = ObjectScopeProvider1.GetNewObjectScope();
                dataGridView1.DataSource = scope.Extent<Customer>().Select(p => p).ToList();
            }
    Error I receive : Could not resolve: Telerik.OpenAccess.35.Extensions, Version=2010.1.527.2 ......... .
    If I do a new project for entities no error.
  2. More than one entity projects that contain different table entites of One Database.Other dal project references that projects and use that entities simultaneously with same scope.

    Is there sample projects for these questions.




    Thanks.

1 Answer, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 25 Aug 2010, 04:31 PM
Hello Hasan Ă–zgilik,

 It is in fact possible to have the actual entities and DAL code (scopes and scope provider) in one project. From what I can see you do not have a reference to the Telerik.OpenAccess.35.Extentions, if you just add one, the issue should be solved. Also you can drop the .Select(p => p) call as it is unnecessary. 

As to your second question this is also possible, but you will have to do some careful configuration. There is a help article explaining how to accomplish this. However if you do have a question, do not hesitate to contact us back.

I would suggest having a look at our Getting started articles as well as the online documentation. It would definitely be of great help to you to have a more complete understanding of the product. Please note that you need to look at the OpenAccess Classic node as it is referring to the old wizards approach which you are using.

I hope this helps, please contact us back if you need further assistance.

All the best,
Serge
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Hasan Oz
Top achievements
Rank 1
Answers by
Serge
Telerik team
Share this question
or