public AddressTypeEntity Create(AddressTypeEntity entity)
		{
			using (IDatabaseProvider provider = ProviderFactory.GetProvider(_connectionStringName))
			{
				return provider.Insert<AddressTypeEntity>(entity);
			}
		}
		public static AddressTypeEntity GetItemForInsert()
		{
			AddressTypeEntity entity = new AddressTypeEntity()
			{
				Description = "Home",
				DeletedDate = DateTime.MinValue
			};

			return entity;
		}
		public AddressTypeEntity Update(AddressTypeEntity entity)
		{
			using (IDatabaseProvider provider = ProviderFactory.GetProvider(_connectionStringName))
			{
				AddressTypeEntity entityToUpdate = Read(entity.Id);
				if (entityToUpdate == null)
					throw new DataAccessException("Address not found"); //  This should not happen seeing that validation should check.

				entityToUpdate = UpdateProperties(entity, entityToUpdate);

				provider.Update<AddressTypeEntity>(entityToUpdate);

				return entityToUpdate;
			}
		}
		public AddressTypeEntity Delete(AddressTypeEntity entity)
		{
			entity.DeletedDate = DateTime.UtcNow;

			return Update(entity);
		}
		private AddressTypeEntity UpdateProperties(AddressTypeEntity entity, AddressTypeEntity entityToUpdate)
		{
			entityToUpdate.Description = entity.Description;
			entityToUpdate.DeletedDate = entity.DeletedDate;

			return entityToUpdate;
		}
		private static void CreateAddressTypes()
		{
			AddressTypeRepository repository = new AddressTypeRepository(ConfigSettings.MySqlDatabaseConnectionName);

			AddressTypeEntity entity = new AddressTypeEntity()
			{
				Description = "Home",
				DeletedDate = DateTime.MinValue
			};

			AddressTypeEntity mEntity = new AddressTypeEntity()
			{
				Description = "Work",
				DeletedDate = DateTime.MinValue
			};


			AddressTypeEntity entity3 = new AddressTypeEntity()
			{
				Description = "Postal",
				DeletedDate = DateTime.MinValue
			};

			entity = repository.Create(entity);
			mEntity = repository.Create(mEntity);
			entity3 = repository.Create(entity3);

			_addressTypeEntities.Add(entity);
			_addressTypeEntities.Add(mEntity);
			_addressTypeEntities.Add(entity3);
		}