This project has moved and is read-only. For the latest updates, please go here.

Generator not calling GetDalNameDot

Dec 16, 2015 at 3:01 PM
Hi Tiego

When I generate a project targetting CSLA45DAL with options to Generate DAL interface and Generate DAL, all the calls to DalFactory.GetManager omit the dot.

The templates in csla40DAL\csharp all call GetDalNameDot(CurrentUnit) but on inspection the

unit.GenerationParams.DalName is empty so the generated code all has DalFactoryGetManager which obviously throws errors

Please advise
Feb 10, 2016 at 12:50 PM
Hi H.

Please go to Project Properties panel, then Generation and Files.
What do you have on:
  • DAL interface base namespace
  • DAL base namespace
There is no convention so you can use whatever name you find suitable. For good pratices sake, if you project's name is Excelsior, the names should be as follows
  • Base namespace Excelsior.Business
  • Utility classes base namespace Excelsior.Business
  • DAL interface base namespace Excelsior.DataAccess
  • DAL base namespace Excelsior.DataAccess.Sql