tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IDatabaseCollection.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Linq;
3
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}
void Attach(TModel model)
Attach a given model to the the working set.
IEnumerable< TModel > Local
An IEnumerable<T> of TModel s prioritizing in the working set.
void RemoveRange(IEnumerable< TModel > models)
Remove a range of models from the IDatabaseCollection<TModel>.
void Add(TModel model)
Add a given model to the the working set.
void Remove(TModel model)
Remove a given model from the the working set.
void AddRange(IEnumerable< TModel > models)
Add a range of models to the IDatabaseCollection<TModel>.