Skip to content

Commit

Permalink
Adding address entity. related #2
Browse files Browse the repository at this point in the history
  • Loading branch information
lscoder committed Aug 17, 2011
1 parent 368f2d1 commit ae7ebf1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
58 changes: 58 additions & 0 deletions src/PetStore.Core/DomainObjects/Foundation/Address.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
namespace PetStore.Core.DomainObjects.Foundation
{
/// <summary>
/// Address entity
/// http://en.wikipedia.org/wiki/Address_(geography)
/// </summary>
public class Address
{
#region Public Properties

/// <summary>
/// Address ID
/// </summary>
public virtual int Id { get; set; }

/// <summary>
/// Address street name
/// </summary>
public virtual string Street { get; set; }

/// <summary>
/// Address number
/// </summary>
public virtual string Number { get; set; }

/// <summary>
/// Address district/neighborhood
/// </summary>
public virtual string District { get; set; }

/// <summary>
/// Address city/town/locality
/// </summary>
public virtual string City { get; set; }

/// <summary>
/// Address State/Province/Region
/// </summary>
public virtual string State { get; set; }

/// <summary>
/// Address country
/// </summary>
public virtual Country Country { get; set; }

/// <summary>
/// Address ZIP/Postal Code
/// </summary>
public virtual string PostalCode { get; set; }

/// <summary>
/// Address additional information
/// </summary>
public virtual string AdditionalInformation { get; set; }

#endregion
}
}
7 changes: 6 additions & 1 deletion src/PetStore.Core/PetStore.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@
<ItemGroup>
<Compile Include="DomainException.cs" />
<Compile Include="DomainObjects\DomainObjectsFactory.cs" />
<Compile Include="DomainObjects\Foundation\Address.cs" />
<Compile Include="DomainObjects\Foundation\Category.cs" />
<Compile Include="DomainObjects\Foundation\Country.cs" />
<Compile Include="DomainObjects\Foundation\Product.cs" />
<Compile Include="DomainObjects\IValidatable.cs" />
<Compile Include="DomainObjects\IValidator.cs" />
<Compile Include="DomainObjects\Log\DomainError.cs" />
Expand Down Expand Up @@ -89,7 +92,9 @@
<Name>PetStore.Resources</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Folder Include="DomainObjects\Security\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down

0 comments on commit ae7ebf1

Please sign in to comment.