Click here to Skip to main content
15,881,281 members
Articles / Programming Languages / XML

DBKeeperNet - Keeps Your DB Schema Up-to-date

Rate me:
Please Sign up or sign in to vote.
4.88/5 (14 votes)
26 Aug 2014BSD4 min read 50.4K   575   89  
An article describing a simple .NET library which simply keeps your database schema up-to-date.
<?xml version="1.0" encoding="utf-8" ?>
<upd:Updates xmlns:upd="http://code.google.com/p/dbkeepernet/Updates-1.0.xsd"
                	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	              xsi:schemaLocation="http://code.google.com/p/dbkeepernet/Updates-1.0.xsd ../DbKeeperNet.Engine/Resources/Updates-1.0.xsd"
                AssemblyName="DbKeeperNet.ComplexDemo">
  <!-- Default way how to check whether to execute update step or not -->
  <DefaultPreconditions>
    <!-- We will use step information saving strategy -->
    <Precondition FriendlyName="Update step executed" Precondition="StepNotExecuted"/>
  </DefaultPreconditions>

  <Update Version="3.00">
    <UpdateStep xsi:type="upd:UpdateDbStepType" FriendlyName="Fill table DbKeeperNet_SimpleDemo" Id="1">
      <AlternativeStatement DbType="MsSql">
        <![CDATA[
          insert into DbKeeperNet_SimpleDemo(name) values('Fourth value MS SQL');
        ]]>
      </AlternativeStatement>
      <AlternativeStatement DbType="MySql">
        <![CDATA[
          insert into DbKeeperNet_SimpleDemo(name) values('Fourth value MySQL');
        ]]>
      </AlternativeStatement>
      <AlternativeStatement DbType="PgSql">
        <![CDATA[
          insert into DbKeeperNet_SimpleDemo(name) values('Fourth value PostgreSQL');
        ]]>
      </AlternativeStatement>
      <AlternativeStatement DbType="SQLite">
        <![CDATA[
          insert into DbKeeperNet_SimpleDemo(name) values('Fourth value SQLite');
        ]]>
      </AlternativeStatement>
    </UpdateStep>
  </Update>
</upd:Updates>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Team Leader NCR
Czech Republic Czech Republic
I'm software developer since 1996. I started with assembler on Intel 8051 CPUs, during years I was interested in C, C++, Sybase PowerBuilder, PHP, Sybase Anywhere Database, MSSQL server and multiplatform development.

Currently I'm developing in C++ and C# (this is my favorit and I spent some time with MCPD achievement). I'm also interested in design patterns.

Comments and Discussions