SofiaCarRentalDAL compile error

3 posts, 0 answers
  1. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 21 Mar 2013 Link to this post

    Hi,
    I'm trying to run the Sofia Car Rental - WCF Plain Services C# sample but I get the following error:

    'Missing partial modifier on declaration of type 'SofiaCarRentalDAL.ISofiaCarRentalEntityDiagramsUnitOfWork'; another partial declaration of this type exists C:\Download\Telerik\ORM\SamplesKitSolutions\Telerik.OpenAccess.SamplesKit\N-Tier example_D5F6B457\SofiaCarRentalDAL\SofiaCarRental.cs 111 19 SofiaCarRentalDAL'

    OpenAccess version is 2013.1.219.
    Visual Studio 2010 SP1

    Regards,
    Craig

  2. Dimitar Tachev
    Admin
    Dimitar Tachev avatar
    67 posts

    Posted 22 Mar 2013 Link to this post

    Hi Craig,

     
    Please accept our apologies for the inconvenience caused.

    This issue is already fixed and it will be released with the Service pack for Q1 release, currently planned for the end of April.

    The exception was thrown when you regenerate your RLINQ file which with the last version of OpenAccess ORM is generating the ISofiaCarRentalEntityDiagramsUnitOfWork interface in the model file (the SofiaCarRental.cs one) but the sample was made when this interface was not created automatically.

    In order to fix this issue you can delete the old UnitOfWork.cs file from the SofiaCarRentalDAL project (the one which is selected in the attached image).

    Please bear in mind that in order to fix this issue permanently (even if you reset the sample), you will need not only to delete the file from the samples cache folder of the Samples Kit (the one which is opening when you click Open Sample Folder) but to delete it from the samples folder in the OpenAccess installation folder too (you could find the file at OpenAccessInstallDirectory\ProductSdk\Content\Samples\
    wpf\CSharp\N-Tier example\SofiaCarRentalDAL\UnitOfWork.cs).

    I hope this is applicable for you.

    Kind regards,
    Dimitar Tachev
    the Telerik team
    Free Webinar: OpenAccess Integration in Sitefinity. SIGN UP NOW.
  3. DevCraft banner
  4. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 22 Mar 2013 Link to this post

    Hi Dimitar,
    I've deleted the file and it works now. Thank you.

    Regards
    Craig
Back to Top