Overview of the Data Model

The POCO DataSet data model is designed to provide a clean, predictable structure for working with tabular data in modern .NET applications. It is composed of independent but related layers, allowing data, schema, and metadata to be transported, displayed, or processed in a flexible and extensible way.

Core Concepts

The model separates schema (ColumnMetadata) from data (DataRow) while linking them through the DataTable. This enables scenarios such as loading schema-only datasets, transporting data without schema, or mixing both depending on UI or service needs.

Supported Data Types

POCO DataSet supports a range of fundamental .NET types suitable for JSON serialization and dynamic UI rendering. All supported types are compatible with runtime metadata inspection and predictable roundtripping across application layers.

Primary Keys

POCO DataSet can store primary key information for rows, but it does not enforce it automatically. Primary keys exist to help your application identify rows when needed (for example, during updates or merges), but the framework does not impose constraints or hidden rules. How primary keys are used is always an explicit decision made by your application. For example, a primary key may be used during merge operations to match refreshed rows with existing client-side data.

Primary Key Characteristics:

This flexible model allows developers to define only the identity rules they need without inheriting complexity.

Relationships Between Tables

POCO DataSet does not enforce relationships between tables internally. Instead, it allows applications to define foreign keys, logical links, and other relationships based on their specific needs without rigid constraints. This approach maintains POCO DataSet’s lightweight philosophy. Applications can implement relationship behavior as needed, whether in service layers, UI components, or rule engines.

Types of Relationships:

Summary

Together, these concepts define POCO DataSet as a flexible, metadata-driven data model. The framework records structure and intent but leaves enforcement and behavior to application logic, keeping responsibilities explicit and predictable.

 

Table of Content POCO DataSet Concepts

 


Business Process Programming in .Net
© 2004–2026 Laskarzhevsky Software Inc.
Unless otherwise noted, the content of this website is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Code examples are provided under the MIT License.
You are free to share and adapt the material provided that appropriate credit is given and any modifications are clearly indicated.
The information provided on this website is for educational purposes only.
The author and publisher make no warranties regarding the completeness or suitability of the information and are not responsible for any damages resulting from its use.