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

Issue with latest templates

Jan 18, 2012 at 11:24 AM

Hi

apologies in advance if I have not configured correctly.  There maybe a missing using declaration

I get conplie error on : DalFactoryITAS.GetManager()) in the business BO library

protected void DataPortal_Fetch(Guid venueID)
        {
            var args = new DataPortalHookArgs(venueID);
            OnFetchPre(args);
            using (var dalManager = DalFactoryITAS.GetManager())
            {
                var dal = dalManager.GetProvider<IVenueDal>();
                var data = dal.Fetch(venueID);
                Fetch(data);
            }
            OnFetchPost(args);
        }
Appears to be missing: 'using Project.Dal' in the BO
HTH
Richard

 

Coordinator
Jan 18, 2012 at 11:00 PM

Hi Richard,

Please state the namespaces for:

  • Business (base namespace)
  • DAL interface (DAL interface base namespace)
  • DAL (DAl base namespace)

State also:

  • Utility classes namespace
  • Separate Namespaces in folders (check or unchecked)

Regards,
Tiago

Jan 19, 2012 at 11:34 AM

Hi

Please state the namespaces for:

  • Business (base namespace) ITAS.Business
  • DAL interface (DAL interface base namespace) ITAS.Dal
  • DAL (DAl base namespace) ITAS.DalAdo

State also:

  • Utility classes namespace ?
  • Separate Namespaces in folders (check or unchecked) Checked

Here is xml

<?xml version="1.0"?><CslaGeneratorUnit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">  <Params>    <DefaultNamespace>ITAS.Business</DefaultNamespace>    <DefaultFolder />    <SmartDateDefault>true</SmartDateDefault>    <AutoCriteria>true</AutoCriteria>    <AutoTimestampCriteria>false</AutoTimestampCriteria>    <DatesDefaultStringWithTypeConversion>true</DatesDefaultStringWithTypeConversion>    <CreateTimestampPropertyMode>NoProperty</CreateTimestampPropertyMode>    <ReadOnlyObjectsCopyAuditing>false</ReadOnlyObjectsCopyAuditing>    <ReadOnlyObjectsCopyTimestamp>false</ReadOnlyObjectsCopyTimestamp>    <CreateReadOnlyObjectsPropertyMode>AutoProperty</CreateReadOnlyObjectsPropertyMode>    <DefaultDataBase>ITAS</DefaultDataBase>    <DefaultTransactionType>TransactionScope</DefaultTransactionType>    <DefaultPersistenceType>SqlConnectionManager</DefaultPersistenceType>    <DefaultDatabaseContextObject />    <ORBChildPropertySuffix>s</ORBChildPropertySuffix>    <ORBCollectionSuffix>Coll</ORBCollectionSuffix>    <ORBSingleSPSuffix>Relation</ORBSingleSPSuffix>    <ORBItemsUseSingleSP>true</ORBItemsUseSingleSP>    <SpAddPrefix />    <SpDeletePrefix />    <SpUpdatePrefix />    <SpGetPrefix />    <SpGeneralPrefix>usp_</SpGeneralPrefix>    <SpAddSuffix>_Insert</SpAddSuffix>    <SpDeleteSuffix>_Delete</SpDeleteSuffix>    <SpUpdateSuffix>_Update</SpUpdateSuffix>    <SpGetSuffix>_Get</SpGetSuffix>    <SpGeneralSuffix />    <RegenSpNameOnObjectRename>true</RegenSpNameOnObjectRename>    <SpBoolSoftDeleteColumn>IsActive</SpBoolSoftDeleteColumn>    <SpIntSoftDeleteColumn />    <SpIgnoreFilterWhenSoftDeleteIsParam>true</SpIgnoreFilterWhenSoftDeleteIsParam>    <SpRemoveChildBeforeParent>true</SpRemoveChildBeforeParent>    <IDGuidDefaultValue>Guid.NewGuid()</IDGuidDefaultValue>    <IDInt16DefaultValue>_lastID</IDInt16DefaultValue>    <IDInt32DefaultValue>_lastID</IDInt32DefaultValue>    <IDInt64DefaultValue>_lastID</IDInt64DefaultValue>    <FieldNamePrefix>_</FieldNamePrefix>    <DelegateNamePrefix>d_</DelegateNamePrefix>    <CreationDateColumn>CreateDate</CreationDateColumn>    <CreationUserColumn>CreateUserID</CreationUserColumn>    <ChangedDateColumn>ChangeDate</ChangedDateColumn>    <ChangedUserColumn>ChangeUserID</ChangedUserColumn>    <LogDateAndTime>true</LogDateAndTime>    <GetUserMethod>Security.UserInformation.UserID</GetUserMethod>  </Params>  <GenerationParams>    <SaveBeforeGenerate>true</SaveBeforeGenerate>    <TargetFramework>CSLA40DAL</TargetFramework>    <BackupOldSource>true</BackupOldSource>    <SeparateNamespaces>true</SeparateNamespaces>    <SeparateBaseClasses>false</SeparateBaseClasses>    <ActiveObjects>false</ActiveObjects>    <UseDotDesignerFileNameConvention>true</UseDotDesignerFileNameConvention>    <RecompileTemplates>false</RecompileTemplates>    <OutputLanguage>CSharp</OutputLanguage>    <NullableSupport>true</NullableSupport>    <PropertyMode>Default</PropertyMode>    <GenerateAuthorization>FullSupport</GenerateAuthorization>    <HeaderVerbosity>None</HeaderVerbosity>    <UseBypassPropertyChecks>false</UseBypassPropertyChecks>    <UseSingleCriteria>false</UseSingleCriteria>    <UsePublicPropertyInfo>true</UsePublicPropertyInfo>    <UseChildFactory>true</UseChildFactory>    <ForceReadOnlyProperties>true</ForceReadOnlyProperties>    <BaseFilenameSuffix>.Designer</BaseFilenameSuffix>    <ExtendedFilenameSuffix />    <ClassCommentFilenameSuffix />    <SeparateClassComment>false</SeparateClassComment>    <BaseNamespace>ITAS.Business</BaseNamespace>    <UtilitiesNamespace>ITAS.Business</UtilitiesNamespace>    <UtilitiesFolder />    <DalInterfaceNamespace>ITAS.Dal</DalInterfaceNamespace>    <DalObjectNamespace>ITAS.DalAdo</DalObjectNamespace>    <GenerateSprocs>true</GenerateSprocs>    <OneSpFilePerObject>true</OneSpFilePerObject>    <GenerateInlineQueries>false</GenerateInlineQueries>    <GenerateQueriesWithSchema>true</GenerateQueriesWithSchema>    <GenerateDatabaseClass>false</GenerateDatabaseClass>    <UseConnectionName>true</UseConnectionName>    <UsesCslaAuthorizationProvider>true</UsesCslaAuthorizationProvider>    <GenerateWinForms>true</GenerateWinForms>    <GenerateWPF>false</GenerateWPF>    <GenerateSilverlight4>true</GenerateSilverlight4>    <SilverlightUsingServices>false</SilverlightUsingServices>    <DatabaseConnection>ITAS</DatabaseConnection>    <UseDto>Never</UseDto>    <DtoLimit>7</DtoLimit>    <GenerateDalInterface>true</GenerateDalInterface>    <GenerateDalObject>true</GenerateDalObject>    <GenerateSynchronous>true</GenerateSynchronous>    <GenerateAsynchronous>true</GenerateAsynchronous>  </GenerationParams>

 

Thanks for your prompt reply

Richard

Coordinator
Jan 19, 2012 at 11:13 PM
Edited Jan 19, 2012 at 11:14 PM
zen8019 wrote:
  • Business (base namespace) ITAS.Business
  • Utility classes namespace ?

Hi Richard,

The Utility classes namespace should be ITAS.Business or ITAS.Business.WhateverYouLike

The point is: why didn't CslaGenFork report a project validation error? Need to investigate.

Coordinator
Jan 29, 2012 at 9:39 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.