Click here to Skip to main content
12,449,910 members (45,021 online)
Click here to Skip to main content

Stats

184.9K views
7.9K downloads
338 bookmarked
Posted

Building an embedded database engine in C#

, 10 Jun 2009 CPOL
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.Core
{
    [Record(FieldMapping = FieldMapping.ExplicitColumnsOnly)]
    internal class DbfColumnHeader
    {
        [Column(Width = 11, Type = DbfDotNet.ColumnType.CHARACTER)]
        public string ColumnName;

        [Column(Type = DbfDotNet.ColumnType.CHAR)]
        public char ColumnType;

        [Column(Type = DbfDotNet.ColumnType.DELAYED, Width = 4)]
        public byte[] FieldDataAddress;

        [Column(Type = DbfDotNet.ColumnType.BYTE)]
        public byte ColumnWidth;

        [Column(Type = DbfDotNet.ColumnType.BYTE)]
        public byte Decimals;

        [Column(Type = DbfDotNet.ColumnType.DELAYED, Width = 14)]
        public byte[] Reserved2;

        public DbfColumnHeader()
        {
        }

        public void a()
        {
            FieldDataAddress = null;
            Reserved2 = null;
        }
    }
}

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)

Share

About the Author

Pascal Ganaye
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.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160826.1 | Last Updated 10 Jun 2009
Article Copyright 2009 by Pascal Ganaye
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid