public void Save(AuthContext context) { if (!isDirty) { return; } var model = new AccountGenericUnlock { Id = accountId, Entry = Entry.Id }; context.Add(model); isDirty = false; }
/// <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; }