tgstation-server  4.4.0
The /tg/station 13 server suite
IDatabaseCollection.cs
Go to the documentation of this file.
1 using System.Collections.Generic;
2 using System.Linq;
3 
4 namespace Tgstation.Server.Host.Database
5 {
10  public interface IDatabaseCollection<TModel> : IQueryable<TModel>, IAsyncEnumerable<TModel>
11  {
15  IEnumerable<TModel> Local { get; }
16 
21  void Add(TModel model);
22 
27  void Remove(TModel model);
28 
33  void Attach(TModel model);
34 
39  void AddRange(IEnumerable<TModel> models);
40 
45  void RemoveRange(IEnumerable<TModel> models);
46  }
47 }