View on GitHub

SauceDB

.net ORM with multipe database engine support.

Download this project as a .zip file Download this project as a tar.gz file

Enum Columns

Sauce supports mapping a column to an enum.
Simply define your enum and set it as the property type
public class TestItemWithEnum
{
    public int ID { get; set; }
    public Data ValueOne { get; set; }
    public Data? ValueTwo { get; set; }
    public int? AnotherValue { get; set; }
    public int? AnotherValueTwo { get; set; }
}

public enum Data : int
{
    Var1 = 1,
    Var2 = 2
}