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

namespace FirstExample
{
    [ActiveRecord]
    public class Osoba : ActiveRecordBase<Osoba>
    {
        [PrimaryKey]
        public int ID { get; set; }

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

        [Property]
        public string Nazwisko { get; set; }
        
        public override string ToString()
        {
            return string.Format( "{0} {1}", this.Imie, this.Nazwisko );
        }
    }
}
