Example #1
0
        public void Save(AuthContext context)
        {
            if (!isDirty)
            {
                return;
            }

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

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