我研究洋葱架构相当一段时间,现在,我已经分析了几样VS的解决方案,但还是无法明白之间的差别Core,并Domain在Onion Architecture.
Core由Domain和Services.Core中分为Core.Application和Core.Domain我完全糊涂了.你能解释一下我,什么是之间的实际差异Core,并Domain在这样的架构?
我有这样的课程.简单的棋盘游戏,如井字游戏.它绝对是无处不在的语言,所以我应该Entities在Domain内的文件夹中创建吗?Core中的域名本身?
public class Game
{
public GameState State { get; set; }
public Board Board { get; set; }
public IEnumerable<Player> Players { get; set; }
public bool Move(int playerId, int field)
{
//Check if Player's move will finish game. …Run Code Online (Sandbox Code Playgroud)