public void AddPlatform(List <Platform> platforms) { CheckDbState(); if (platforms == null || platforms.Count() == 0) { return; } lock (fileLock) { PlatformsCollection.InsertBulk(platforms); } OnPlatformsCollectionChanged(platforms.ToList(), new List <Platform>()); }
public void AddPlatform(List <Platform> platforms) { CheckDbState(); if (platforms == null || platforms.Count() == 0) { return; } using (Database.Engine.Locker.Reserved()) { PlatformsCollection.InsertBulk(platforms); } OnPlatformsCollectionChanged(platforms.ToList(), new List <Platform>()); }