Files
using.cash/Basic/Types/BasicCity.cs
T
2012-11-05 13:16:13 +00:00

45 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
using Activizr.Basic.Interfaces;
namespace Activizr.Basic.Types
{
[Serializable]
public class BasicCity : IHasIdentity
{
public BasicCity (int cityId, string name, int countryId, int geographyId)
{
this.cityId = cityId;
this.name = name;
this.countryId = countryId;
this.geographyId = geographyId;
}
public BasicCity (BasicCity original)
: this(original.cityId, original.name, original.countryId, original.geographyId)
{
}
[Obsolete ("Do not call this ctor directly. It exists to enable serialization.", true)]
public BasicCity()
{
// this ctor should never be called from code
}
public int CityId { get; private set; }
public string Name { get; protected set; }
public int CountryId { get; protected set; }
public int GeographyId { get; protected set; }
#region IHasIdentity Members
public int Identity
{
get { return this.cityId; }
}
#endregion
}
}