Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 970 Bytes

README.md

File metadata and controls

30 lines (16 loc) · 970 Bytes

HyenaORM

A learning exercise in making a homebrew ORM

Goal:

Make a flexible ORM.

Approach:

Initially it will support a single database configuration under MSSQL. An IDatabase interface provides the option for building solutions for other RDBMS.

Currently only supports selects from single-level tables.

Creates, Updates and Deletes are in the pipeline for future development.

Contains:

TableNameAttribute: Store the name of the table relating to the class;

FieldNameAttribute: Store the name of the property's corresponding database field;

PrimaryKeyAttribute: Mark the property that is the primary key of the table;

Task<IEnumerable> LoadAllRecords(): Returns all records of a given class;

Task LoadRecordByPrimaryKey(object primaryKey): Returns the class record containing the primary key value;

Requirements:

System.Data.SqlClient (4.6.1) is required in any project that utilises this project.