Commit 378ae3ef authored by adnansetiawan's avatar adnansetiawan
Browse files

add core project and application layer

parent 206b680f
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Folder Include="Student\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SIX.Core\SIX.Core.csproj" />
</ItemGroup>
</Project>
using System;
using System.Collections.Generic;
namespace SIX.ApplicationLayer.Student
{
public interface IStudentService
{
List<SIX.Core.Student.Student> GetAll();
}
}
using System;
using System.Collections.Generic;
using SIX.Core.Student;
namespace SIX.ApplicationLayer.Student
{
public class StudentService : IStudentService
{
public List<Core.Student.Student> GetAll()
{
return new List<Core.Student.Student>
{
new Core.Student.Student { NIM = "001", Name = "A" },
new Core.Student.Student { NIM = "002", Name = "B" },
new Core.Student.Student { NIM = "003", Name = "C" },
new Core.Student.Student { NIM = "004", Name = "D" }
};
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Class1.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Student\" />
</ItemGroup>
</Project>
using System;
namespace SIX.Core.Student
{
public class Student
{
public string Name { get; set; }
public string NIM { get; set; }
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\SIX.Core\SIX.Core.csproj" />
</ItemGroup>
</Project>
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SIX.Core", "SIX.Core\SIX.Core.csproj", "{C865F8A4-CB57-4F70-8E26-0717449BCE60}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SIX.ApplicationLayer", "SIX.ApplicationLayer\SIX.ApplicationLayer.csproj", "{06168B2D-FB8B-47DD-A8B9-301A507279BF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SIX.Infrastructure", "SIX.Infrastructure\SIX.Infrastructure.csproj", "{C591D340-97B2-46CF-92E8-A1E717E83600}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C865F8A4-CB57-4F70-8E26-0717449BCE60}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C865F8A4-CB57-4F70-8E26-0717449BCE60}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C865F8A4-CB57-4F70-8E26-0717449BCE60}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C865F8A4-CB57-4F70-8E26-0717449BCE60}.Release|Any CPU.Build.0 = Release|Any CPU
{06168B2D-FB8B-47DD-A8B9-301A507279BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{06168B2D-FB8B-47DD-A8B9-301A507279BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{06168B2D-FB8B-47DD-A8B9-301A507279BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{06168B2D-FB8B-47DD-A8B9-301A507279BF}.Release|Any CPU.Build.0 = Release|Any CPU
{C591D340-97B2-46CF-92E8-A1E717E83600}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C591D340-97B2-46CF-92E8-A1E717E83600}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C591D340-97B2-46CF-92E8-A1E717E83600}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C591D340-97B2-46CF-92E8-A1E717E83600}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment