Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
LinkingUp SQLDatabase
- Loading branch information
ChrisRollings
committed
Mar 22, 2019
1 parent
283e7ed
commit de6ec4c1358be45a2c37c8949d8fee19169a8910
Showing
184 changed files
with
16,840 additions
and
147 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
Oops, something went wrong.