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

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

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

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

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