緣起:
上週有思考工作專案的大架構,主幹大概長這樣
打算都用 docker
來實作,部屬跟搬遷會方便很多,只是要學不少東西,而且在實作時也踩了不少的雷。這篇文章主要是紀錄
dotnet 專案的 Dockerfile ,還有搭配 docker-compose 的使用。
internal class Program
{
class Performance
{
public int SN { get; set; }
public string Name { get; set; }
public Performance(int sN, string name)
{
SN = sN;
Name = name;
}
public override string ToString()
{
return $"SN:{SN}, Name:{Name}";
}
}
class Review
{
public int PerformanceSN { get; set; }
public string Name { get; set; }
public bool IsPass { get; set; }
public Review(int performanceSN, string name, bool isPass)
{
PerformanceSN = performanceSN;
Name = name;
IsPass = isPass;
}
public override string ToString()
{
return $"PerformanceSN:{PerformanceSN}, Name:{Name}, IsPass:{IsPass}";
}
}
}