PI06 i PI06-1. Docker definitions for MSSQL and Postgres. Data seeder/generator for countries and people. Entity Framework example with variants for Postgres and MSSQL
This commit is contained in:
16
SomeOfCSharpFeatures/Extensions/Activity.cs
Normal file
16
SomeOfCSharpFeatures/Extensions/Activity.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Extensions;
|
||||
|
||||
[Flags]
|
||||
public enum DayPeriod
|
||||
{
|
||||
Morning = 1, Evening = 2, Afternoon = 4, Night = 8
|
||||
}
|
||||
|
||||
public class Activity
|
||||
{
|
||||
public required string Person { get; set; }
|
||||
public int Hours { get; set; }
|
||||
public DayPeriod Period { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user