Configuring NBusiness

Below is an example of how to setup your .config file to get NBusiness working
<configuration xmlns="">
      <section name="NBusiness" type="NBusiness.Data.Settings"/>
      <add name="Example" 
          providerName="System.Data.SqlClient" />
   <!—Other configuration settings here !-->
   <NBusiness ConnectionStringName="Example" 
              ProviderType="NBusiness.Providers.SqlDatabaseProvider, NBusiness"
              AuthorizeDefault="false" />

  • ConnectionStringName: Specifies which connection string your DatabaseProvider should use.
  • ProviderType: [Optional] Specifies the type to be use as the DatabaseProvider. Uses the SqlDatabaseProvider by default.
  • AccessDefault: [Optional] Specifies that no fields may be accessed by any role by default.
  • AuthorizeDefault: [Optional] Specifies that no entities may be fetched/inserted/updated/deleted by any role by default.

Last edited Sep 16, 2007 at 6:54 AM by justinc, version 1


No comments yet.