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

Thread is closed for posting
2 posts, 0 answers
  1. Hasan Oz
    Hasan Oz avatar
    11 posts
    Member since:
    Apr 2010

    Posted 24 Aug 2010 Link to this post

    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.

  2. Serge
    Serge avatar
    375 posts

    Posted 25 Aug 2010 Link to this post

    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,
    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
Back to Top