You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dice_app/Sources/Data/Program.cs

30 lines
814 B

using Data.EF;
using Data.EF.Players;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Model.Players;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.Intrinsics.Arm;
namespace Data
{
internal static class Program
{
static void Main(string[] args)
{
using (DiceAppDbContext db = new DiceAppDbContextWithStub()) // we will remove the "WithStub" bit when we release
{
if (db.Players is not null)
{
foreach (PlayerEntity entity in db.Players)
{
Debug.WriteLine($"{entity.ID} -- {entity.Name}");
}
}
}
}
}
}