Skip to content

Instantly share code, notes, and snippets.

@mr5z

mr5z/dotincave1.cs

Last active Oct 30, 2020
Embed
What would you like to do?
// Cave
public partial class Cave
{
[Key]
public int Id { get; set; }
[ForeignKey(nameof(Author))]
public int AuthorId { get; set; }
[ForeignKey(nameof(Map))]
public int MapId { get; set; }
[StringLength(50)]
public string Name { get; set; }
public DateTimeOffset DateCreated { get; set; }
public long Duration { get; set; }
public DeviceType DeviceOrigin { get; set; }
public bool ShowJumpScare { get; set; }
public double EndPointRadius { get; set; }
// Unused
public Map Map { get; set; }
public virtual User Author { get; set; }
}
// User
public partial class User
{
[Key]
public int Id { get; set; }
[StringLength(50)]
public string DisplayName { get; set; }
public UserType Type { get; set; }
// Unused
public virtual ICollection<Cave> Cave { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment