public MemoryDatabase( PersonModelTable PersonModelTable, QuestMasterTable QuestMasterTable, ItemMasterTable ItemMasterTable, QuestMasterEmptyValidateTable QuestMasterEmptyValidateTable, ItemMasterEmptyValidateTable ItemMasterEmptyValidateTable, SequentialCheckMasterTable SequentialCheckMasterTable, SingleMasterTable SingleMasterTable, FailTable FailTable, SampleTable SampleTable, SkillMasterTable SkillMasterTable, TestMasterTable TestMasterTable, UserLevelTable UserLevelTable ) { this.PersonModelTable = PersonModelTable; this.QuestMasterTable = QuestMasterTable; this.ItemMasterTable = ItemMasterTable; this.QuestMasterEmptyValidateTable = QuestMasterEmptyValidateTable; this.ItemMasterEmptyValidateTable = ItemMasterEmptyValidateTable; this.SequentialCheckMasterTable = SequentialCheckMasterTable; this.SingleMasterTable = SingleMasterTable; this.FailTable = FailTable; this.SampleTable = SampleTable; this.SkillMasterTable = SkillMasterTable; this.TestMasterTable = TestMasterTable; this.UserLevelTable = UserLevelTable; }
public void ReplaceAll(System.Collections.Generic.IList <SequentialCheckMaster> data) { var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default); var table = new SequentialCheckMasterTable(newData); memory = new MemoryDatabase( memory.QuestMasterTable, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, table, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }
public void Diff(SequentialCheckMaster[] addOrReplaceData) { var data = DiffCore(memory.SequentialCheckMasterTable.GetRawDataUnsafe(), addOrReplaceData, x => x.Id, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default); var table = new SequentialCheckMasterTable(newData); memory = new MemoryDatabase( memory.QuestMasterTable, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, table, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }
public void RemoveSequentialCheckMaster(int[] keys) { var data = RemoveCore(memory.SequentialCheckMasterTable.GetRawDataUnsafe(), keys, x => x.Id, System.Collections.Generic.Comparer <int> .Default); var newData = CloneAndSortBy(data, x => x.Id, System.Collections.Generic.Comparer <int> .Default); var table = new SequentialCheckMasterTable(newData); memory = new MemoryDatabase( memory.PersonModelTable, memory.QuestMasterTable, memory.ItemMasterTable, memory.QuestMasterEmptyValidateTable, memory.ItemMasterEmptyValidateTable, table, memory.SingleMasterTable, memory.FailTable, memory.SampleTable, memory.SkillMasterTable, memory.TestMasterTable, memory.UserLevelTable ); }