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; }
}
}