1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Nolics and VS2008

Nolics and VS2008

8 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    05 Jun 2008
    Link to this post
    I'm developing a custom module and have run into difficulty working with Nolics.Net. I am working in VS2008. I discovered that the Nolics license that you have for download (version 4.2) does not integrate with VS2008, so I visited the web site, downloaded and installed version 4.3, which is an alpha release, but it is the only version with VS2008 compatibility.


    My problem occurs when running the upgrade database command. A successful result of "The databases are up to date" is reported, but my tables are not created.

    Via SQL Profiler I can see that a single sp_executesql command is issued to fetch rows from INFORMATION_SCHEMA.TABLES but that is the only command executed. I tried with a blank database (instead of adding to the Sitefinity database) and the basic initialization was performed (creates NN_Counters, etc), but still my tables were not created.

    Has any had similar experience with Nolics and VS2008 (and hopefully found a solution)? Or must I develop custom modules in VS2005?

    Thanks in advance for your feedback.

  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    05 Jun 2008
    Link to this post
    Hi Gary,

    Yes, it seems there are some problems with Nolics.net for VS 2008 and we hope they will be fixed soon.
    We suggest you use v4.3 alpha only for creating dbclasses,  and upgrade the database with v4.2 through its API using Nolics.ORMapper.Base.OdbDataProvider.Upgrade() function.

    Best wishes,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    05 Jun 2008
    Link to this post
    Vlad,

    Thanks for confirming this. I don't think there is a supported way to have two versions of Nolics installed, so I'm going to take the approach of creating the DAL in a separate VS2005 project and stick with version 4.2 for now.

    I also posted a report of this problem in the Nolics.net forum.

    Thanks again,
    Gary
  4. sam
    sam avatar
    102 posts
    Registered:
    31 Jan 2008
    05 Jun 2008
    Link to this post
    It will be good when SF moves away from Nolics and goes with Linq to SQL or Entities.
  5. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    05 Jun 2008
    Link to this post
    Are they planning to do that?

    I do lots of LINQ development, so when I started working on a custom module and found that all the guidance for data access was based on Nolics, I found myself at a junction -- go with Nolics, which was new to me but has lots of Sitefinity support, or go with LINQ, which I am experienced with and like using. I have tentatively opted for the former, because the learning curve is already quite steep for building a decent pluggable module and I didn't want to add more challenges than were necessary.

    After working with Nolics a little, I have found it to be very decent. It doesn't have a graphical UI for designing the objects, but the DSL is easy enough. Also, it has the really nice capability to upgrade your database. LINQ can create your initial database structure (DataContext.CreateDatabase) but it does not do structural upgrades to synchronize an old version of the database with the current model. So, if Sitefinity eventually moves to LINQ then they'll also need to address this, either by building a component, buying a component (hopefully with a redistributable development license), or supplying db upgrade scripts (yuck).

    One concern I have with Nolics is that I don't know how well it is supported. There is not a lot of activity in their forum, and it is surprising that there is no VS2008 support, given that it's been out now for several months.

  6. Bob
    Bob avatar
    330 posts
    Registered:
    30 Dec 2016
    06 Jun 2008
    Link to this post
    Hi Gary and Sam,

    It seems Nolics have abandoned their ORM product and we are certainly going to move away. In fact, we are already working on a new DAL that will support LINQ along with all the cool features Nolics has, including forward and reverse engineering for variety of databases. Hopefully, some modules using the new DAL will appear by the end of this year.

    Best wishes,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Stefano
    Stefano avatar
    4 posts
    Registered:
    15 Feb 2008
    15 Jul 2008
    Link to this post
    Hi Bob,
    does you use some tools for new DAL?

    Best Regards

    Stefano
  8. Bob
    Bob avatar
    330 posts
    Registered:
    30 Dec 2016
    18 Jul 2008
    Link to this post
    Hi Stefano,

    We will release official information on the new DAL later this autumn. Unfortunately, I cannot give any details for the time being.

    Kind regards,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
8 posts, 0 answered