Config file description

It is classic XML file with .config extension. The root element must be <DbmlUpdater> with http://vipper.peshiba.cz/schemas/DbmlUpdater/v2 namespace.

<?xml version="1.0" encoding="utf-8" ?>
<DbmlUpdater xmlns="http://vipper.peshiba.cz/schemas/DbmlUpdater/v2">
  <DBML />
  <Code />
</DbmlUpdater>

<DBML> element

This section defines how extension will generate and modify temporary dbml file.

Sample:
...
  <DBML generate="true"
        deleteOnComplete="false"
        connectionString="...">
    <Tables />
    <Views />
    <Functions />
    <SProcs />
  </DBML>
...

Required attributes

connectionString - any valid connection string

Optional attributes

generates - for development pruposes; enable or disable generating dbml file
deleteOnComplete - for development pruposes; enable or disable deleting dbml file

<Tables> element

...
    <Tables mode="None | AllExceptListed | OnlyListed">
      <Table>dbo.Table1</Table>
      <Table>dbo.Table2</Table>
      ...
    </Tables>
...

Required attributes

mode - classes will be generated for these tables:
None - all tables will be skipped
AllExceptListed - listed tables will be skipped.
OnlyListed - not listed tables will be skipped.

<Views> element

...
    <Views mode="None | AllExceptListed | OnlyListed">
      <View>dbo.View1</View>
      <View>dbo.View2</View>
      ...
    </Views>
...

Required attributes

mode - classes will be generated for these views:
None - all views will be skipped
AllExceptListed - listed views will be skipped.
OnlyListed - not listed views will be skipped.

<Functions> element

...
    <Functions mode="None | AllExceptListed | OnlyListed">
      <Function>dbo.Function1</Function>
      <Function>dbo.Function2</Function>
      ...
    </Functions>
...

Required attributes

mode - classes will be generated for these functions:
None - all tables will be skipped
AllExceptListed - listed functions will be skipped.
OnlyListed - not listed functions will be skipped.

<SProcs> element

...
    <SProcs mode="None | AllExceptListed | OnlyListed">
      <SProc>dbo.SProc1</SProc>
      <SProc>dbo.SProc2</SProc>
      ...
    </SProcs>
...

Required attributes

mode - classes will be generated for these storage procedures:
None - all storage procedures will be skipped
AllExceptListed - listed storage procedures will be skipped.
OnlyListed - not listed storage procedures will be skipped.

<Code> element

This element defines how extension will generate code file.

Sample:
...
  <Code generate="true" 
        namespace="DbmlUpdater.Data" 
        context="MyData"/>
...

Required attributes

namespace - namespace of the generated code
context - name of data context class

Optional attributes

generates - for development pruposes; enable or disable generating code file

Last edited Feb 12, 2012 at 12:32 PM by vipper_cnx, version 7

Comments

No comments yet.