Commit 814a1a99 authored by Andres Käver's avatar Andres Käver

initial

parent e8b52ed7
namespace Domain
{
public class Contact
{
public string ContactValue { get; set; }
public Contact(Person person, ContactType contactType)
{
Person = person;
ContactType = contactType;
}
public Person Person { get; set; }
public ContactType ContactType { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace Domain
{
public class ContactType
{
public string ContactTypeValue { get; set; }
public List<Contact> Contacts { get; set; } = new List<Contact>();
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
using System;
using System.Collections.Generic;
namespace Domain
{
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
public List<Contact> Contacts { get; set; } = new List<Contact>();
}
}
\ No newline at end of file
......@@ -2,6 +2,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp", "ConsoleApp\ConsoleApp.csproj", "{817E622D-30ED-426F-BA78-C34D66E0CDB1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Domain", "Domain\Domain.csproj", "{EC36D18E-BAAD-445E-B60A-3F34642B96E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
......@@ -12,5 +14,9 @@ Global
{817E622D-30ED-426F-BA78-C34D66E0CDB1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{817E622D-30ED-426F-BA78-C34D66E0CDB1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{817E622D-30ED-426F-BA78-C34D66E0CDB1}.Release|Any CPU.Build.0 = Release|Any CPU
{EC36D18E-BAAD-445E-B60A-3F34642B96E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EC36D18E-BAAD-445E-B60A-3F34642B96E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EC36D18E-BAAD-445E-B60A-3F34642B96E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EC36D18E-BAAD-445E-B60A-3F34642B96E2}.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