Ejemplo n.º 1
0
        public void Save(AuthContext context)
        {
            if (!isDirty)
            {
                return;
            }

            var model = new AccountGenericUnlockModel
            {
                Id    = accountId,
                Entry = Entry.Id
            };

            context.Add(model);
            isDirty = false;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new <see cref="CostumeUnlock"/> from existing <see cref="AccountGenericUnlockModel"/> database model.
 /// </summary>
 public GenericUnlock(AccountGenericUnlockModel model)
 {
     Entry     = GameTableManager.Instance.GenericUnlockEntry.GetEntry(model.Entry);
     accountId = model.Id;
 }