All pastes #807214 Raw Edit

katratxo

public text v1 · immutable
·published 2007-12-06 10:14 UTC
rendered paste body
[ActiveRecord]
    public class Usuario : ActiveRecordBase {
        private int id;
       // other properties
        private Club club;

        [PrimaryKey]
        public int Id {
            get { return id;}
            set { id = value; }
        }

      // getters & setters

        [BelongsTo("ClubId")]
        public Club Club {
            get { return club; }
            set { club = value; }
        }

      // other methods
    }