Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C#

Building an embedded database engine in C#

Rate me:
Please Sign up or sign in to vote.
4.91/5 (110 votes)
10 Jun 2009CPOL8 min read 317.1K   10K   347  
DbfDotNet is a very fast and compact fully managed standalone database/entity framework, for the .Net Framework.
using System;
using System.Collections.Generic;
using System.Text;

namespace DbfDotNet
{
    public class InvalidColumnException : Exception
    {
        public InvalidColumnException(Type columnType, string msg)
            : base(String.Format("Unsupported column type {0} in DbfTable. {1}", columnType.Name, msg))
        {
        }
        public InvalidColumnException(string columnType, string msg)
            : base(String.Format("Unsupported column type {0} in DbfTable. {1}", columnType, msg))
        {
        }
    }

    public class RuntimeException : Exception
    {
        public RuntimeException(string msg) : base(msg) { }
    }

    public class FieldOverflowException : Exception
    {
        public FieldOverflowException(string msg) : base(msg) { }
    }

}

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 Code Project Open License (CPOL)


Written By
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.

Comments and Discussions