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

Foreign Keys

Sauce will assume there are no foreign keys unless you tell it otherwise.
NOTE: This is not enforced by SauceDB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess.Core.Attributes;

namespace SauceExample
{
  public class MyObject
  {
    public int id { get; set; }

    [DataField(PrimaryKeyType = typeof(OtherObject))]
    public int MyRelatedObject { get; set; }
 
   public string Name { get; set; }
  }
}