Skip to content

AaronCoad/HyenaORM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A learning exercise in making a homebrew ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages