Skip to content
Permalink
Browse files
LinkingUp SQLDatabase
  • Loading branch information
ChrisRollings committed Mar 22, 2019
1 parent 283e7ed commit de6ec4c1358be45a2c37c8949d8fee19169a8910
Show file tree
Hide file tree
Showing 184 changed files with 16,840 additions and 147 deletions.

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,21 @@
using groupH_M32COM.Angular.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace groupH_M32COM.Angular.DatabaseClasses
{
public class RCBoatDBContext : DbContext
{
public RCBoatDBContext(DbContextOptions<RCBoatDBContext> options)
: base(options)
{
}

public DbSet<Boat> Boats { get; set; }
public DbSet<Boat_Event_Detail> BoatEventDetails { get; set; }

}
}
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;

namespace groupH_M32COM.Angular.Models
{
public partial class Boat
{
public Boat()
{
Crew_Member = new HashSet<Crew_Member>();
}

public int ID { get; set; }
public string Description { get; set; }
public string Model { get; set; }
public string Color { get; set; }
public int Number { get; set; }

public ICollection<Crew_Member> Crew_Member { get; set; }
}
}
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;

namespace groupH_M32COM.Angular.Models
{
public partial class Boat_Event_Detail
{
public int ID { get; set; }
public int Event_ID { get; set; }
public int Phase_ID { get; set; }
public TimeSpan Time_Taken { get; set; }
public int Boat_Phase_Position { get; set; }
public int Phase_Points { get; set; }
}
}

0 comments on commit de6ec4c

Please sign in to comment.