This project has moved. For the latest updates, please go here.

Generator not calling GetDalNameDot

Dec 16, 2015 at 2: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
H
Coordinator
Feb 10, 2016 at 11:50 AM
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