Ejemplo n.º 1
0
        public static void RemoveInstantElements(this IEnumerable <ITable> tables, Type type)
        {
            DatabaseManager.Instance.WriterInstance(type, DatabaseAction.Remove, tables.ToArray());

            foreach (var table in tables)
            {
                ITableManager.RemoveFromCache(table);
            }
        }
Ejemplo n.º 2
0
        public static void RemoveInstantElement <T>(this T table) where T : ITable
        {
            lock (Locker)
            {
                DatabaseWriter <T> .Remove(table);

                ITableManager.RemoveFromCache(table);
            }
        }