The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Setup and Config w/DNN 4.5

Last post 05-22-2007, 6:56 PM by Scott.Schecter. 6 replies.
Sort Posts: Previous Next
  •  05-22-2007, 10:14 AM 2610

    Setup and Config w/DNN 4.5

    Hello -

    I have a DNN 4.5 site that I have complete control over.  I am wondering what the best/recommended way to use ES2007 with DNN is.  I read somehwere about using the Configless setup, but since I have full access/control to the web.config, would it be better to use the web.config to handle ES stuff?  And, if so, are there any samples/articles that provide this information?

    Thanks

     - will

  •  05-22-2007, 10:54 AM 2611 in reply to 2610

    Re: Setup and Config w/DNN 4.5

    If you have full control then yes I would just use the config file. Here is a minimalist example note(there is nothing different about dnn setup if you choose to use the config file, its just the same as a regular webform project)
    Code:
    1    <configSections>
    2    	<sectionGroup name="EntitySpaces" 
    3    		type="EntitySpaces.Interfaces.esConfigSettings, EntitySpaces.Core">
    4    		<section name="connectionInfo" 
    5    			type="EntitySpaces.Interfaces.esConfigSettings, EntitySpaces.Interfaces" 
    6    			allowLocation="true" allowDefinition="Everywhere" restartOnExternalChanges="true"/>
    7    	</sectionGroup>
    8    </configSections>
    9    
    10   <EntitySpaces>
    11   	<connectionInfo default="SQL">
    12   		<connections>
    13   			<add name="SQL" providerMetadataKey="esDefault" sqlAccessType="DynamicSQL" 
    14   				provider="EntitySpaces.SqlClientProvider" providerClass="DataProvider" 
    15   				connectionString="Server=Scattorshot\Sql2005;Database=Northwind;Trusted_Connection=Yes;"/>
    16   		</connections>
    17   	</connectionInfo>
    18   </EntitySpaces>
    
    You will also need to add this to your Global.asax application start
    Code:
    1    protected void Application_Start(object sender, EventArgs e)
    2    {
    3    	//---------------------------------------------------------------
    4    	// Assign the Medium Trust Loader
    5    	//---------------------------------------------------------------        
    6    	EntitySpaces.Interfaces.esProviderFactory.Factory =
    7    		new EntitySpaces.LoaderMT.esDataProviderFactory();
    8    }
    


    Regards,

    Scott Schecter
    EntitySpaces | My Site
  •  05-22-2007, 10:55 AM 2612 in reply to 2611

    Re: Setup and Config w/DNN 4.5

    Also check out the Getting Started PDF

    Regards,

    Scott Schecter
    EntitySpaces | My Site
  •  05-22-2007, 3:24 PM 2624 in reply to 2612

    Re: Setup and Config w/DNN 4.5

    Thanks for the information and link to the Getting Started guide.   I read that through a couple of times today.  Is there anything specific to DNN that I need to worry about?  I am specifically concerned about how to set up my dev environment.

     thanks again

     - will

  •  05-22-2007, 4:14 PM 2625 in reply to 2624

    Re: Setup and Config w/DNN 4.5

    No other than the configless suggestion, everything operates the same under DNN as it does with a standard asp.net project.

    Regards,

    Scott Schecter
    EntitySpaces | My Site
  •  05-22-2007, 6:40 PM 2627 in reply to 2625

    Re: Setup and Config w/DNN 4.5

    Thanks for the help.

     - will

  •  05-22-2007, 6:56 PM 2628 in reply to 2627

    Re: Setup and Config w/DNN 4.5

    I thought about this some more and came up with one thing, on the master generated template advanced options you will see an option for 'Use DNN object qualifier'. If you are in total control of the dnn install and not using a DNN object qualifier it is not really necessary, but it won't hurt to always use it for dnn.

    Regards,

    Scott Schecter
    EntitySpaces | My Site
View as RSS news feed in XML