first things
This commit is contained in:
18
Datamodels/DatabaseModels/Address.cs
Normal file
18
Datamodels/DatabaseModels/Address.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using Datamodels.Lookups;
|
||||
|
||||
namespace Datamodels.DatabaseModels
|
||||
{
|
||||
public class Address: IEntityClass
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string StreetName { get; set; }
|
||||
public int StreetNumber { get; set; }
|
||||
public string Zip { get; set; }
|
||||
public string City { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ChangedAt { get; set; }
|
||||
public LookupValue AddressType { get; set; } //something like "Job" or "Private"
|
||||
public Person Person { get; set; }
|
||||
}
|
||||
}
|
||||
15
Datamodels/DatabaseModels/Communication.cs
Normal file
15
Datamodels/DatabaseModels/Communication.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Datamodels.Lookups;
|
||||
|
||||
namespace Datamodels.DatabaseModels
|
||||
{
|
||||
public class Communication
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string CommunicationValue { get; set; } //mobile phone, home phone, job mail, etc.
|
||||
public LookupValue CommunicationType { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ChangedAt { get; set; }
|
||||
public Person Person { get; set; }
|
||||
}
|
||||
}
|
||||
10
Datamodels/DatabaseModels/IEntityClass.cs
Normal file
10
Datamodels/DatabaseModels/IEntityClass.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Datamodels.DatabaseModels
|
||||
{
|
||||
public interface IEntityClass
|
||||
{
|
||||
}
|
||||
}
|
||||
20
Datamodels/DatabaseModels/Person.cs
Normal file
20
Datamodels/DatabaseModels/Person.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Datamodels.Lookups;
|
||||
|
||||
namespace Datamodels.DatabaseModels
|
||||
{
|
||||
public class Person
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public DateTime? Birthday { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime ChangedAt { get; set; }
|
||||
public LookupValue Gender { get; set; }
|
||||
public List<Address> Addresses { get; set; }
|
||||
public List<Communication> Communications { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user