Skip to content

Instantly share code, notes, and snippets.

@almirvuk
Created August 4, 2017 01:21
using Realms;
using System;
namespace Xamarin.Forms_Realm.Models {
public class Player : RealmObject{
[PrimaryKey]
public string PlayerId { get; set; } = Guid.NewGuid().ToString();
public string Name { get; set; }
public int JerseyNumber { get; set; }
public string Position { get; set; }
public Team Team { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment