Beispiel #1
0
        internal int AddMixEntry(MixEntryTable newMixEntry)
        {
            sqlConnection.Insert(newMixEntry);

            return(newMixEntry.EntryId);
        }
        public void AddMix(string name)
        {
            MixTable table = new MixTable(name, false, 0, MixSortOrder.None, false);

            DatabaseManager.Current.AddMix(table);

            MixModel mixModel = new MixModel(table);
            Mixes.Add(mixModel);
            mixLookupDictionary.Add(mixModel.MixId, mixModel);

            MixEntryTable entryTable = new MixEntryTable(mixModel.MixId, string.Empty, true, MixType.None);
            DatabaseManager.Current.AddMixEntry(entryTable);

            mixModel.AddEntry(entryTable);
        }
Beispiel #3
0
        internal int AddMixEntry(MixEntryTable newMixEntry)
        {
            sqlConnection.Insert(newMixEntry);

            return newMixEntry.EntryId;
        }