using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace OneToOneExample
{
    [ActiveRecord( "Adres" )]
    public class Adres : ActiveRecordBase
    {
        [PrimaryKey( PrimaryKeyType.Foreign )]
        public int ID { get; set; }

        [OneToOne]
        public Osoba Osoba { get; set; }

        [Property]
        public string Miasto { get; set; } 
    }
}
